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:
parent
29a4baf2f4
commit
bded377c9a
|
|
@ -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 ";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue