We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d058c commit 60ab640Copy full SHA for 60ab640
addons/brotli-nginx.sh
@@ -26,9 +26,10 @@ rm -f /etc/apt/sources.list.d/nginx*
26
check_command yes | add-apt-repository ppa:ondrej/nginx
27
apt update -q4 && spinner_loading
28
install_if_not nginx
29
-systemctl stop nginx.service
30
-systemctl start nginx.service
31
-systemctl enable nginx.service
+systemctl stop nginx
+systemctl start nginx
+systemctl enable nginx
32
+apt-get purge ppa-purge -y
33
apt-get autoremove -y
34
35
# Enable Brotli
@@ -41,7 +42,6 @@ fi
41
42
# Enable Brotli in config
43
rm -f /etc/nginx/nginx.conf
44
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
-systemctl restart nginx.service
45
46
# Restart Nginx
47
if nginx -t
0 commit comments