Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-10-07 18:38:23 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-10-07 18:42:31 +0300
commite70305579345da3599f4d1a5dfbeee7f37744f75 (patch)
treef399cd9ca3cfd14f0ca77bcac2b5d2b4349cb333 /x-ui.sh
parent7efe1d60d54358d6d7d8fb9ff03406cb75f15c9a (diff)
bash - restart panel after cert set
Diffstat (limited to 'x-ui.sh')
-rw-r--r--x-ui.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 8c294cd5..ab3c34a1 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -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() {
@@ -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
@@ -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