Skip to content

Commit 60ab640

Browse files
authored
cleanup
1 parent 11d058c commit 60ab640

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/brotli-nginx.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ rm -f /etc/apt/sources.list.d/nginx*
2626
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
29+
systemctl stop nginx
30+
systemctl start nginx
31+
systemctl enable nginx
32+
apt-get purge ppa-purge -y
3233
apt-get autoremove -y
3334

3435
# Enable Brotli
@@ -41,7 +42,6 @@ fi
4142
# Enable Brotli in config
4243
rm -f /etc/nginx/nginx.conf
4344
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
44-
systemctl restart nginx.service
4545

4646
# Restart Nginx
4747
if nginx -t

0 commit comments

Comments
 (0)