modified: bin/container/domainctl.sh

This commit is contained in:
Code-Egg
2024-11-05 21:46:58 +08:00
parent 54c684df31
commit 88223ae123
+2 -2
View File
@@ -95,15 +95,15 @@ add_domain(){
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
add_ols_domain
fi fi
add_ls_domain
add_ols_domain
} }
del_ls_domain(){ del_ls_domain(){