Skip to content

Commit

Permalink
removed wait $!
Browse files Browse the repository at this point in the history
removed wait $!
  • Loading branch information
cryptopool-builders committed Apr 6, 2020
1 parent 0531f47 commit 77f8120
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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.91" --menu "Choose one" -1 60 6 \
RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.92" --menu "Choose one" -1 60 6 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -" \
Expand Down
1 change: 0 additions & 1 deletion nginx_domain_ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ echo -e " Generating Certbot Request for ${DomainName} ...$COL_RESET"
sudo mkdir -p /var/www/_letsencrypt
sudo chown www-data /var/www/_letsencrypt
hide_output sudo certbot certonly --webroot -d "${DomainName}" --register-unsafely-without-email -w /var/www/_letsencrypt -n --agree-tos --force-renewal
wait $!
# Check to make sure certbot installed ok, if not keep the self generated ssl config.
if sudo [ -f /etc/letsencrypt/live/"$DomainName"/fullchain.pem ]; then
# Configure Certbot to reload NGINX after success renew:
Expand Down
3 changes: 1 addition & 2 deletions nginx_subdomain_ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ echo -e " Generating Certbot Request for ${DomainName} ...$COL_RESET"
sudo mkdir -p /var/www/_letsencrypt
sudo chown www-data /var/www/_letsencrypt
hide_output sudo certbot certonly --webroot -d "${DomainName}" --register-unsafely-without-email -w /var/www/_letsencrypt -n --agree-tos --force-renewal
wait $!
# Check to make sure certbot installed ok, if not keep the self generated ssl config.
if sudo [ -f /etc/letsencrypt/live/"${DomainName}"/fullchain.pem ]; then
if sudo [ -f /etc/letsencrypt/live/"$DomainName"/fullchain.pem ]; then
# Configure Certbot to reload NGINX after success renew:
sudo mkdir -p /etc/letsencrypt/renewal-hooks/post/
echo '#!/bin/bash\nnginx -t && systemctl reload nginx' | sudo -E tee /etc/letsencrypt/renewal-hooks/post/nginx-reload.sh >/dev/null 2>&1
Expand Down
4 changes: 3 additions & 1 deletion send_mail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Intern
apt_install mailutils

sudo sed -i 's/inet_interfaces = all/inet_interfaces = loopback-only/g' /etc/postfix/main.cf
sudo sed -i 's/myhostname =/# myhostname =/g' /etc/postfix/main.cf
sudo sed -i 's/mydestination/# mydestination/g' /etc/postfix/main.cf
sudo sed -i '/# mydestination/i mydestination = $myhostname, localhost.$mydomain, $mydomain' /etc/postfix/main.cf
sudo sed -i '/# mydestination/i mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain' /etc/postfix/main.cf
sudo sed -i '/# myhostname =/i myhostname = localhost' /etc/postfix/main.cf

sudo systemctl restart postfix
whoami=`whoami`
Expand Down

0 comments on commit 77f8120

Please sign in to comment.