BugFix-make relative paths work (#19)

remove path on systemctl as it should rely on path as it could be in
/sbib/ on some systems
This commit is contained in:
Mafoo
2016-06-11 15:50:10 +01:00
committed by FusionPBX
parent 29a4baf2f4
commit bded377c9a
2 changed files with 11 additions and 8 deletions

15
debian/install.sh vendored
View File

@@ -40,6 +40,9 @@ sed -i '/cdrom:/d' /etc/apt/sources.list
echo "Update Debian"
apt-get upgrade && apt-get update -y --force-yes
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#IPTables
resources/iptables.sh
@@ -84,12 +87,12 @@ resources/postgres.sh
server_address=$(hostname -I)
#restart services
/bin/systemctl daemon-reload
/bin/systemctl try-restart freeswitch
/bin/systemctl daemon-reload
/bin/systemctl restart php5-fpm
/bin/systemctl restart nginx
/bin/systemctl restart fail2ban
systemctl daemon-reload
systemctl try-restart freeswitch
systemctl daemon-reload
systemctl restart php5-fpm
systemctl restart nginx
systemctl restart fail2ban
#Show database password
echo "Complete the install by by going to the IP address of this server ";