-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe90d40
commit 396d936
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,6 +274,12 @@ FUNC_CERTBOT(){ | |
read -p "Enter a comma-separated list of domains, A record followed by CNAME records for RPC & WSS (e.g., domain1.com,domain2.com): " USER_DOMAINS | ||
fi | ||
|
||
|
||
# Prompt for user email if not provided as a variable | ||
if [ -z "$CERT_EMAIL" ]; then | ||
read -p "Enter your email address for certbot updates: " CERT_EMAIL | ||
fi | ||
|
||
echo -e "${YELLOW}$USER_DOMAINS${NC}" | ||
|
||
IFS=',' read -ra DOMAINS_ARRAY <<< "$USER_DOMAINS" | ||
|
@@ -286,7 +292,7 @@ FUNC_CERTBOT(){ | |
sudo systemctl enable nginx | ||
|
||
# Request and install a Let's Encrypt SSL/TLS certificate for Nginx | ||
sudo certbot --nginx -m "[email protected]" -n --agree-tos -d "$USER_DOMAINS" | ||
sudo certbot --nginx -m "$CERT_EMAIL" -n --agree-tos -d "$USER_DOMAINS" | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters