Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 3, 2024
1 parent 2cbc3bc commit 11d058c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/brotli-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ root_check
install_if_not ppa-purge
ppa-purge nginx/stable
rm -f /etc/apt/sources.list.d/nginx*
add-apt-repository ppa:ondrej/nginx -y
check_command yes | add-apt-repository ppa:ondrej/nginx
apt update -q4 && spinner_loading
install_if_not nginx
systemctl stop nginx.service
systemctl start nginx.service
systemctl enable nginx.service
apt-get autoremove -y

# Enable Brotli
Expand All @@ -38,6 +41,7 @@ fi
# Enable Brotli in config
rm -f /etc/nginx/nginx.conf
curl_to_dir "$STATIC" nginx.conf /etc/nginx/
systemctl restart nginx.service

# Restart Nginx
if nginx -t
Expand Down

0 comments on commit 11d058c

Please sign in to comment.