Skip to content

Commit

Permalink
nginx upgrade fix
Browse files Browse the repository at this point in the history
nginx upgrade fix
  • Loading branch information
cryptopool-builders committed Mar 26, 2020
1 parent 49fc724 commit 845b1a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -" \
Expand Down
6 changes: 6 additions & 0 deletions nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 845b1a6

Please sign in to comment.