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" echo "Update Debian"
apt-get upgrade && apt-get update -y --force-yes apt-get upgrade && apt-get update -y --force-yes
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#IPTables #IPTables
resources/iptables.sh resources/iptables.sh
@ -84,12 +87,12 @@ resources/postgres.sh
server_address=$(hostname -I) server_address=$(hostname -I)
#restart services #restart services
/bin/systemctl daemon-reload systemctl daemon-reload
/bin/systemctl try-restart freeswitch systemctl try-restart freeswitch
/bin/systemctl daemon-reload systemctl daemon-reload
/bin/systemctl restart php5-fpm systemctl restart php5-fpm
/bin/systemctl restart nginx systemctl restart nginx
/bin/systemctl restart fail2ban systemctl restart fail2ban
#Show database password #Show database password
echo "Complete the install by by going to the IP address of this server "; 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 #apt-get install -y --force-yes sudo postgresql-bdr-9.4 postgresql-bdr-9.4-bdr-plugin postgresql-bdr-contrib-9.4
#systemd #systemd
/bin/systemctl daemon-reload systemctl daemon-reload
/bin/systemctl restart postgresql systemctl restart postgresql
#init.d #init.d
#/usr/sbin/service postgresql restart #/usr/sbin/service postgresql restart