]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert "FS-8369 Debian8/CentOS7 systemd installer additions"
authorKen Rice <krice@freeswitch.org>
Fri, 20 Nov 2015 20:54:05 +0000 (14:54 -0600)
committerKen Rice <krice@freeswitch.org>
Fri, 20 Nov 2015 20:54:05 +0000 (14:54 -0600)
This reverts commit 757fa94239e67aed08ec8ada776415e08a18987a.

build/Makefile.am
configure.ac
init/freeswitch.default [moved from build/startup/freeswitch.default with 100% similarity]
init/freeswitch.service.in [moved from build/startup/freeswitch.service.in with 100% similarity]
init/freeswitch.tmpfile [moved from build/startup/freeswitch.tmpfile with 100% similarity]
init/install_systemd.sh.in [moved from build/startup/install_systemd.sh.in with 91% similarity]

index dbda77330ed389fee97a9b6c3f9609c3b0154a8e..38202826da4fca583cc075a85456d35cacc6c411 100644 (file)
@@ -57,10 +57,10 @@ install:
        @echo " +               $(MK) samples                     +"
 if KNOWN_INIT
        @echo " +                                                 +"
-       @echo " +       Install startup scripts:                  +"
-       @echo " +       ------------------------                  +"
+       @echo " +       Install init scripts:                     +"
+       @echo " +       ---------------------                     +"
        @echo " +                                                 +"
-       @echo " +       build/startup/install_systemd.sh          +"
+       @echo " +       init/install_systemd.sh                   +"
 endif
        @echo " +                                                 +"
        @echo " +                                                 +"
index a1d8010a397b373ba3c5062788d87eab1a86a89e..df050a0001cc77772c910f425dd940d628dc6426 100644 (file)
@@ -83,7 +83,7 @@ default_certsdir="$prefix/certs"
 default_fontsdir="$prefix/fonts"
 default_imagesdir="$prefix/images"
 
-eval bindir_expanded="${bindir}"
+bindir="$exec_prefix/bin"
 
 if test "${enable_fhs}" = "yes"; then
     eval full_datadir="${datadir}/freeswitch"
@@ -789,9 +789,8 @@ case "$host" in
                                        AC_SUBST(DISTRO)
                                        AC_SUBST(rundir)
                                        AC_SUBST(environmentfilelocation)
-                                       AC_SUBST(bindir_expanded)
-                                       AC_CONFIG_FILES([build/startup/install_systemd.sh], [chmod +x build/startup/install_systemd.sh])
-                                       AC_CONFIG_FILES([build/startup/freeswitch.service])
+                                       AC_CONFIG_FILES([init/install_systemd.sh], [chmod +x init/install_systemd.sh])
+                                       AC_CONFIG_FILES([init/freeswitch.service])
                                fi
                                ;;
                        *)
similarity index 91%
rename from build/startup/install_systemd.sh.in
rename to init/install_systemd.sh.in
index 6fe5374a5c24dc4a3cf36a3848fc409abf8a6686..60253a141aa99ecbfc7ec2ffe1d5a9553bb2c502 100644 (file)
@@ -25,11 +25,11 @@ echo "- Create user freeswitch and add it to group freeswitch"
 FSPATH=@prefix@
 if [[ $FSPATH == *"freeswitch"* ]]
 then
-       echo "- Set permissions on @prefix@ and files in @bindir_expanded@"
+       echo "- Set permissions on @prefix@ and files in @bindir@"
 fi
 echo "- Install systemd unit file"
 echo "- Install /etc/@environmentfilelocation@/freeswitch"
-echo
+echo 
 read -p "Do you want to continue? (y/n) " -n 1 -r
 if [[ $REPLY =~ ^[yY]$ ]]
 then
@@ -45,7 +45,7 @@ then
        then
                $SUDO chown -R freeswitch:freeswitch @prefix@
                $SUDO chmod -R ug=rwX,o= @prefix@
-               $SUDO chmod -R u=rwx,g=rx @bindir_expanded@/*
+               $SUDO chmod -R u=rwx,g=rx @bindir@/*
        fi
        $SUDO cp init/freeswitch.service /etc/systemd/system/
        $SUDO cp init/freeswitch.tmpfile /etc/tmpfiles.d/freeswitch.conf
@@ -58,5 +58,5 @@ then
        else
                echo "Make sure your config files are in place in @confdir@, if they are you can start Freeswitch using 'systemctl start freeswitch'"
        fi
-       echo "Then start fs_cli by running @bindir_expanded@/fs_cli"
+       echo "Then start fs_cli by running @bindir@/fs_cli"
 fi