fix(x-ui.sh): pass silent flag to stop/start during IP SSL setup

This commit is contained in:
MHSanaei 2026-05-09 19:59:01 +02:00
parent b885a1f8a6
commit 72d8ebd269
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

@ -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}" 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 read -rp "Generate SSL certificate for IP now? [y/N]: " gen_ssl
if [[ "$gen_ssl" == "y" || "$gen_ssl" == "Y" ]]; then if [[ "$gen_ssl" == "y" || "$gen_ssl" == "Y" ]]; then
stop > /dev/null 2>&1 stop 0 > /dev/null 2>&1
ssl_cert_issue_for_ip ssl_cert_issue_for_ip
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo -e "${green}Access URL: https://${server_ip}:${existing_port}${existing_webBasePath}${plain}" 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 # 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 else
LOGE "IP certificate setup failed." LOGE "IP certificate setup failed."
echo -e "${yellow}You can try again via option 19 (SSL Certificate Management).${plain}" 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 fi
else else
echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}" echo -e "${yellow}Access URL: http://${server_ip}:${existing_port}${existing_webBasePath}${plain}"