modified: bin/container/domainctl.sh

This commit is contained in:
Code-Egg
2024-11-05 21:46:58 +08:00
parent 54c684df31
commit 88223ae123
+5 -5
View File
@@ -94,16 +94,16 @@ add_domain(){
if [ "${CK_RESULT}" != '' ]; then if [ "${CK_RESULT}" != '' ]; then
echo "# It appears the domain already exist! Check the ${LS_HTTPD_CONF} if you believe this is a mistake!" echo "# It appears the domain already exist! Check the ${LS_HTTPD_CONF} if you believe this is a mistake!"
exit 1 exit 1
fi fi
add_ls_domain
elif [ "${LSV}" = 'openlitespeed' ]; then elif [ "${LSV}" = 'openlitespeed' ]; then
check_duplicate "member.*${DOMAIN}" ${OLS_HTTPD_CONF} check_duplicate "member.*${DOMAIN}" ${OLS_HTTPD_CONF}
if [ "${CK_RESULT}" != '' ]; then if [ "${CK_RESULT}" != '' ]; then
echo "# It appears the domain already exist! Check the ${OLS_HTTPD_CONF} if you believe this is a mistake!" echo "# It appears the domain already exist! Check the ${OLS_HTTPD_CONF} if you believe this is a mistake!"
exit 1 exit 1
fi fi
fi add_ols_domain
add_ls_domain fi
add_ols_domain
} }
del_ls_domain(){ del_ls_domain(){