mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
bash - restart panel after cert set
This commit is contained in:
parent
7efe1d60d5
commit
e703055793
5
x-ui.sh
5
x-ui.sh
@ -286,11 +286,10 @@ reset_webbasepath() {
|
|||||||
|
|
||||||
# Apply the new web base path setting
|
# Apply the new web base path setting
|
||||||
/usr/local/x-ui/x-ui setting -webBasePath "${config_webBasePath}" >/dev/null 2>&1
|
/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 "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}"
|
echo -e "${green}Please use the new web base path to access the panel.${plain}"
|
||||||
|
restart
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_config() {
|
reset_config() {
|
||||||
@ -894,6 +893,7 @@ ssl_cert_issue_main() {
|
|||||||
echo "Panel paths set for domain: $domain"
|
echo "Panel paths set for domain: $domain"
|
||||||
echo " - Certificate File: $webCertFile"
|
echo " - Certificate File: $webCertFile"
|
||||||
echo " - Private Key File: $webKeyFile"
|
echo " - Private Key File: $webKeyFile"
|
||||||
|
restart
|
||||||
else
|
else
|
||||||
echo "Certificate or private key not found for domain: $domain."
|
echo "Certificate or private key not found for domain: $domain."
|
||||||
fi
|
fi
|
||||||
@ -1028,6 +1028,7 @@ ssl_cert_issue() {
|
|||||||
LOGI "Panel paths set for domain: $domain"
|
LOGI "Panel paths set for domain: $domain"
|
||||||
LOGI " - Certificate File: $webCertFile"
|
LOGI " - Certificate File: $webCertFile"
|
||||||
LOGI " - Private Key File: $webKeyFile"
|
LOGI " - Private Key File: $webKeyFile"
|
||||||
|
restart
|
||||||
else
|
else
|
||||||
LOGE "Error: Certificate or private key file not found for domain: $domain."
|
LOGE "Error: Certificate or private key file not found for domain: $domain."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user