Skip to content

Commit

Permalink
bash - restart panel after cert set
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Oct 7, 2024
1 parent 7efe1d6 commit e703055
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ reset_webbasepath() {

# Apply the new web base path setting
/usr/local/x-ui/x-ui setting -webBasePath "${config_webBasePath}" >/dev/null 2>&1
systemctl restart x-ui

# Display confirmation message

echo -e "Web base path has been reset to: ${green}${config_webBasePath}${plain}"
echo -e "${green}Please use the new web base path to access the panel.${plain}"
restart
}

reset_config() {
Expand Down Expand Up @@ -894,6 +893,7 @@ ssl_cert_issue_main() {
echo "Panel paths set for domain: $domain"
echo " - Certificate File: $webCertFile"
echo " - Private Key File: $webKeyFile"
restart
else
echo "Certificate or private key not found for domain: $domain."
fi
Expand Down Expand Up @@ -1028,6 +1028,7 @@ ssl_cert_issue() {
LOGI "Panel paths set for domain: $domain"
LOGI " - Certificate File: $webCertFile"
LOGI " - Private Key File: $webKeyFile"
restart
else
LOGE "Error: Certificate or private key file not found for domain: $domain."
fi
Expand Down

0 comments on commit e703055

Please sign in to comment.