Skip to content

Commit

Permalink
nginx fix again
Browse files Browse the repository at this point in the history
nginx fix again
  • Loading branch information
cryptopool-builders committed Mar 26, 2020
1 parent 845b1a6 commit 25c4500
Show file tree
Hide file tree
Showing 2 changed files with 9 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.87" --menu "Choose one" -1 60 6 \
RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.88" --menu "Choose one" -1 60 6 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -" \
Expand Down
8 changes: 8 additions & 0 deletions nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ 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
Expand Down

0 comments on commit 25c4500

Please sign in to comment.