Skip to content

Commit 45368fd

Browse files
authored
update order
1 parent 53cead6 commit 45368fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

addons/brotli-nginx.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ root_check
2121

2222
# Replace old Nginx with new
2323
install_if_not ppa-purge
24-
add-apt-repository ppa:ondrej/nginx
25-
apt update -q4 && spinner_loading
26-
apt-get upgrade nginx -y
2724
ppa-purge nginx/stable
2825
rm -f /etc/apt/sources.list.d/nginx*
26+
add-apt-repository ppa:ondrej/nginx -y
27+
apt update -q4 && spinner_loading
28+
install_if_not nginx
2929
apt-get autoremove -y
3030

3131
# Enable Brotli
@@ -35,6 +35,9 @@ then
3535
echo "load_module modules/ngx_http_brotli_filter_module.so;" > /etc/nginx/modules-enabled/50-mod-http-brotli-filter.conf
3636
fi
3737

38+
# Enable Brotli in config
39+
# TBA
40+
3841
# Restart Nginx
3942
if nginx -t
4043
then

0 commit comments

Comments
 (0)