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