diff --git a/Apache-Installer.sh b/Apache-Installer.sh index 7cfcf2b..09e9e62 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -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 \n Require all granted\n \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 #