Skip to content

Commit

Permalink
update order
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 3, 2024
1 parent 53cead6 commit 45368fd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions addons/brotli-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ root_check

# Replace old Nginx with new
install_if_not ppa-purge
add-apt-repository ppa:ondrej/nginx
apt update -q4 && spinner_loading
apt-get upgrade nginx -y
ppa-purge nginx/stable
rm -f /etc/apt/sources.list.d/nginx*
add-apt-repository ppa:ondrej/nginx -y
apt update -q4 && spinner_loading
install_if_not nginx
apt-get autoremove -y

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

# Enable Brotli in config
# TBA

# Restart Nginx
if nginx -t
then
Expand Down

0 comments on commit 45368fd

Please sign in to comment.