mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-13 09:36:05 +00:00
fix(x-ui.sh): pass silent flag to stop/start during IP SSL setup
This commit is contained in:
parent
b885a1f8a6
commit
72d8ebd269
1 changed files with 3 additions and 3 deletions
6
x-ui.sh
6
x-ui.sh
|
|
@ -336,16 +336,16 @@ check_config() {
|
|||
echo -e "${yellow}You can get a Let's Encrypt certificate for your IP address (valid ~6 days, auto-renews).${plain}"
|
||||
read -rp "Generate SSL certificate for IP now? [y/N]: " gen_ssl
|
||||
if [[ "$gen_ssl" == "y" || "$gen_ssl" == "Y" ]]; then
|
||||
stop > /dev/null 2>&1
|
||||
stop 0 > /dev/null 2>&1
|
||||
ssl_cert_issue_for_ip
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo -e "${green}Access URL: https://${server_ip}:${existing_port}${existing_webBasePath}${plain}"
|
||||
# ssl_cert_issue_for_ip already restarts the panel, but ensure it's running
|
||||
start > /dev/null 2>&1
|
||||
start 0 > /dev/null 2>&1
|
||||
else
|
||||
LOGE "IP certificate setup failed."
|
||||
echo -e "${yellow}You can try again via option 19 (SSL Certificate Management).${plain}"
|
||||
start > /dev/null 2>&1
|
||||
start 0 > /dev/null 2>&1
|
||||
fi
|
||||
else
|
||||
echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue