Update install.sh
This commit is contained in:
parent
666fc87838
commit
0ac1c952ae
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue