Update install.sh

This commit is contained in:
FusionPBX 2018-10-10 18:49:01 -06:00 committed by GitHub
parent 666fc87838
commit 0ac1c952ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

20
debian/install.sh vendored
View File

@ -27,6 +27,7 @@ apt-get install -y nano
#SNMP #SNMP
apt-get install -y snmpd apt-get install -y snmpd
echo "rocommunity public" > /etc/snmp/snmpd.conf echo "rocommunity public" > /etc/snmp/snmpd.conf
service snmpd restart
#IPTables #IPTables
resources/iptables.sh resources/iptables.sh
@ -57,14 +58,21 @@ server_address=$(hostname -I)
#restart services #restart services
systemctl daemon-reload systemctl daemon-reload
if [ ."$php_version" = ."5" ]; then if [ ."$php_version" = ."5.6" ]; then
systemctl restart php5-fpm service php5-fpm restart
fi fi
if [ ."$php_version" = ."7" ]; then if [ ."$php_version" = ."7.0" ]; then
systemctl restart php7.1-fpm service php7.0-fpm restart
fi fi
systemctl restart nginx if [ ."$php_version" = ."7.1" ]; then
systemctl restart fail2ban service php7.1-fpm restart
fi
if [ ."$php_version" = ."7.2" ]; then
service php7.2-fpm restart
fi
service nginx restart
service fail2ban restart
#add the database schema, user and groups #add the database schema, user and groups
resources/finish.sh resources/finish.sh