Skip to content

Commit 11d058c

Browse files
authored
minor fixes
1 parent 2cbc3bc commit 11d058c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

addons/brotli-nginx.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ root_check
2323
install_if_not ppa-purge
2424
ppa-purge nginx/stable
2525
rm -f /etc/apt/sources.list.d/nginx*
26-
add-apt-repository ppa:ondrej/nginx -y
26+
check_command yes | add-apt-repository ppa:ondrej/nginx
2727
apt update -q4 && spinner_loading
2828
install_if_not nginx
29+
systemctl stop nginx.service
30+
systemctl start nginx.service
31+
systemctl enable nginx.service
2932
apt-get autoremove -y
3033

3134
# Enable Brotli
@@ -38,6 +41,7 @@ fi
3841
# Enable Brotli in config
3942
rm -f /etc/nginx/nginx.conf
4043
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
44+
systemctl restart nginx.service
4145

4246
# Restart Nginx
4347
if nginx -t

0 commit comments

Comments
 (0)