From 9f72e5eee597c9283753532c231d14f481976748 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 11 Apr 2019 09:50:02 +0200 Subject: [PATCH] Update 'NGINX-Installer.sh' --- NGINX-Installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NGINX-Installer.sh b/NGINX-Installer.sh index 42c7b4f..ffb1f5d 100644 --- a/NGINX-Installer.sh +++ b/NGINX-Installer.sh @@ -26,7 +26,6 @@ if [ $brotlinginx = 1 ]; then 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 - source /root/data-user_setup.sh # Creating extra files and directories wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-brotli.conf -O /etc/nginx/nginx.conf @@ -43,9 +42,12 @@ if [ $brotlinginx = 1 ]; then else #installing nginx from apt apt install -y nginx - source /root/data-user_setup.sh wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf fi +if [ $datauser= = 1 ]; then + source /root/data-user_setup.sh + +fi mkdir -p /etc/nginx apt install -y mysql-server