Update 'NGINX-Installer.sh'
This commit is contained in:
@@ -19,6 +19,18 @@ chmod -R 755 /var/www
|
||||
# NGINX + MySQL #
|
||||
##-------------------##
|
||||
|
||||
|
||||
if [ $brotlinginx = 1 ]; then
|
||||
wget https://git.ictmaatwerk.com/deb/nginx-brotli/nginx_latest~bionic_amd64.deb
|
||||
wget https://git.ictmaatwerk.com/deb/nginx-brotli/nginx-dbg_latest~bionic_amd64.deb
|
||||
dpkg -i nginx_latest~bionic_amd64.deb
|
||||
dpkg -i nginx-dbg_latest~bionic_amd64.deb
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-brotli.conf -O /etc/nginx/nginx.conf
|
||||
else
|
||||
apt install -y nginx
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
apt install -y nginx mysql-server-5.7
|
||||
# mysql_secure_installation automated
|
||||
mysqladmin -u root password "$password"
|
||||
@@ -129,7 +141,6 @@ server {
|
||||
}
|
||||
EOF
|
||||
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf
|
||||
ln -s /etc/nginx/sites-available/"$domain" /etc/nginx/sites-enabled/
|
||||
|
||||
##---------##
|
||||
|
||||
Reference in New Issue
Block a user