From 845b1a6475b90f03a89aaa082a2741b4b2d92e49 Mon Sep 17 00:00:00 2001 From: cryptopool Date: Thu, 26 Mar 2020 12:26:39 -0400 Subject: [PATCH] nginx upgrade fix nginx upgrade fix --- menu.sh | 2 +- nginx_upgrade.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/menu.sh b/menu.sh index b8419ce..f8dfd94 100644 --- a/menu.sh +++ b/menu.sh @@ -7,7 +7,7 @@ source /etc/functions.sh -RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.86" --menu "Choose one" -1 60 6 \ +RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.87" --menu "Choose one" -1 60 6 \ ' ' "- For small private pools -" \ 1 "YiiMP - Single Server" \ ' ' "- If you plan on adding more servers later -" \ diff --git a/nginx_upgrade.sh b/nginx_upgrade.sh index bb99fba..0e99402 100644 --- a/nginx_upgrade.sh +++ b/nginx_upgrade.sh @@ -42,9 +42,15 @@ sudo cp -r nginx_confs/security.conf /etc/nginx/cryptopool.builders sudo cp -r nginx_confs/letsencrypt.conf /etc/nginx/cryptopool.builders # Removing default nginx site configs. +if [ -f /etc/nginx/conf.d/default.conf ]; then sudo rm -r /etc/nginx/conf.d/default.conf +fi +if [ -f /etc/nginx/sites-available/default ]; then sudo rm -r /etc/nginx/sites-available/default +fi +if [ -f /etc/nginx/sites-enabled/default ]; then sudo rm -r /etc/nginx/sites-enabled/default +fi echo -e "$GREEN NGINX upgrade complete...$COL_RESET" restart_service nginx