BugFix-make relative paths work

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-09 17:10:00 +01:00
parent 90bc829d22
commit a465ee221b
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 ";

View File

@ -19,8 +19,8 @@ apt-get install -y --force-yes sudo postgresql
#apt-get install -y --force-yes sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4
#systemd
/bin/systemctl daemon-reload
/bin/systemctl restart postgresql
systemctl daemon-reload
systemctl restart postgresql
#init.d
#/usr/sbin/service postgresql restart