@echo " + $(MK) samples +"
if KNOWN_INIT
@echo " + +"
- @echo " + Install init scripts: +"
- @echo " + --------------------- +"
+ @echo " + Install startup scripts: +"
+ @echo " + ------------------------ +"
@echo " + +"
- @echo " + init/install_systemd.sh +"
+ @echo " + build/startup/install_systemd.sh +"
endif
@echo " + +"
@echo " + +"
FSPATH=@prefix@
if [[ $FSPATH == *"freeswitch"* ]]
then
- echo "- Set permissions on @prefix@ and files in @bindir@"
+ echo "- Set permissions on @prefix@ and files in @bindir_expanded@"
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
then
$SUDO chown -R freeswitch:freeswitch @prefix@
$SUDO chmod -R ug=rwX,o= @prefix@
- $SUDO chmod -R u=rwx,g=rx @bindir@/*
+ $SUDO chmod -R u=rwx,g=rx @bindir_expanded@/*
fi
$SUDO cp init/freeswitch.service /etc/systemd/system/
$SUDO cp init/freeswitch.tmpfile /etc/tmpfiles.d/freeswitch.conf
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@/fs_cli"
+ echo "Then start fs_cli by running @bindir_expanded@/fs_cli"
fi
default_fontsdir="$prefix/fonts"
default_imagesdir="$prefix/images"
-bindir="$exec_prefix/bin"
+eval bindir_expanded="${bindir}"
if test "${enable_fhs}" = "yes"; then
eval full_datadir="${datadir}/freeswitch"
AC_SUBST(DISTRO)
AC_SUBST(rundir)
AC_SUBST(environmentfilelocation)
- AC_CONFIG_FILES([init/install_systemd.sh], [chmod +x init/install_systemd.sh])
- AC_CONFIG_FILES([init/freeswitch.service])
+ 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])
fi
;;
*)