From 4826e53ee8f55f86d1851b773474f9d21b781f97 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 3 Sep 2020 14:19:36 +0200 Subject: [PATCH] Fixed issues regading nginx repo migration --- CoreModules/nginx/conf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreModules/nginx/conf.sh b/CoreModules/nginx/conf.sh index d451a17..07905af 100644 --- a/CoreModules/nginx/conf.sh +++ b/CoreModules/nginx/conf.sh @@ -4,7 +4,7 @@ systemctl stop nginx # Nginx # ############# -mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/nginx/snippets /etc/nginx/modules-available /etc/nginx/modules-enabled /etc/nginx/snippets/ +mkdir -p /var/www/html /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/nginx/snippets /etc/nginx/modules-available /etc/nginx/modules-enabled /etc/nginx/snippets/ wget -q -t7 "$repo"/raw/branch/"$branch"/CoreModules/nginx/config/nginx/fastcgi.conf -O /etc/nginx/fastcgi.conf wget -q -t7 "$repo"/raw/branch/"$branch"/CoreModules/nginx/config/nginx/fastcgi-php.conf -O /etc/nginx/snippets/fastcgi-php.conf wget -q -t7 "$repo"/raw/branch/"$branch"/CoreModules/nginx/config/nginx/snippets-ssl.conf -O /etc/nginx/snippets/ngx-ssl.conf @@ -40,6 +40,6 @@ wget -q -t7 "$repo"/raw/branch/"$branch"/Scripts/toggles/toggle-Netdata_NGINX.sh wget -q -t7 "$repo"/raw/branch/"$branch"/Scripts/toggles/toggle-PhpMyAdmin_NGINX.sh -O /opt/toggle/toggle-PhpMyAdmin.sh # custom Welcome page -echo "$webserv is functioning normally" > /var/www/html/index.html +echo "$webserv is functioning normally" > /usr/share/nginx/html/index.html systemctl start nginx \ No newline at end of file