Skip to content

Commit

Permalink
nginx restart fix?
Browse files Browse the repository at this point in the history
nginx restart fix?
  • Loading branch information
cryptopool-builders committed Apr 7, 2020
1 parent 77f8120 commit 3e33f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
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.92" --menu "Choose one" -1 60 6 \
RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.93" --menu "Choose one" -1 60 6 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -" \
Expand Down
18 changes: 2 additions & 16 deletions nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,10 @@ sudo cp -r nginx_confs/php_fastcgi.conf /etc/nginx/cryptopool.builders
sudo cp -r nginx_confs/security.conf /etc/nginx/cryptopool.builders
sudo cp -r nginx_confs/letsencrypt.conf /etc/nginx/cryptopool.builders

# Stupid changes
if [[ ! -e '/etc/nginx/sites-available' ]]; then
sudo mkdir -p /etc/nginx/sites-available
fi
if [[ ! -e '/etc/nginx/sites-enabled' ]]; then
sudo mkdir -p /etc/nginx/sites-enabled
fi

# 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-enabled/default ]; then
sudo rm -r /etc/nginx/sites-enabled/default
fi
if [ -f /etc/nginx/sites-available/default ]; then
sudo rm -r /etc/nginx/sites-available/default
fi
sudo rm -r /etc/nginx/sites-enabled/default*
sudo rm -r /etc/nginx/sites-available/default*

echo -e "$GREEN NGINX upgrade complete...$COL_RESET"
restart_service nginx
Expand Down

0 comments on commit 3e33f15

Please sign in to comment.