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 2cbc3bc commit 11d058cCopy full SHA for 11d058c
addons/brotli-nginx.sh
@@ -23,9 +23,12 @@ root_check
23
install_if_not ppa-purge
24
ppa-purge nginx/stable
25
rm -f /etc/apt/sources.list.d/nginx*
26
-add-apt-repository ppa:ondrej/nginx -y
+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
32
apt-get autoremove -y
33
34
# Enable Brotli
@@ -38,6 +41,7 @@ fi
38
41
# Enable Brotli in config
39
42
rm -f /etc/nginx/nginx.conf
40
43
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
44
+systemctl restart nginx.service
45
46
# Restart Nginx
47
if nginx -t
0 commit comments