Update 'Apache-Installer.sh'

This commit is contained in:
bprieshof
2019-04-10 14:10:33 +02:00
parent a0b1104e26
commit b3baed4578

View File

@@ -111,14 +111,12 @@ newaliases
# Netdata #
##-------------##
if [ $netdata = 1 ]; then
apt install -y netdata
sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf
ufw allow 19999/tcp
sed -i 's+#netdata here+RewriteEngine On\n ProxyRequests Off\n ProxyPreserveHost On\n <Proxy *>\n Require all granted\n </Proxy>\n ProxyPass "/netdata/" "http://localhost:19999/" connectiontimeout=5 timeout=30 keepalive=on\n ProxyPassReverse "/netdata/" "http://localhost:19999/"\n #RewriteRule ^/netdata$ http://%{HTTP_HOST}/netdata/ [L,R=301] #HTTP\n RewriteRule ^/netdata$ https://%{HTTP_HOST}/netdata/ [L,R=301] #HTTPS+g' /etc/apache2/sites-available/"$domain.conf"
# systemctl stop netdata
# systemctl disable netdata
fi
systemctl stop netdata
systemctl disable netdata
##---------------##
# Memcached #