@@ -49,6 +49,10 @@ check_hestia_demo_mode
prepare_web_backend
get_domain_values 'web'
+if [[ -n "$BACKEND" && "$BACKEND" != "$template" ]];then
+ check_result "$E_EXISTS" "Pool already exists"
+fi
+
# Allocating backend port
backend_port=9000
ports=$(grep -v '^;' $pool/* 2>/dev/null |grep listen |grep -o :[0-9].*)
@@ -110,6 +110,11 @@ if [ -n "$PROXY_SYSTEM" ]; then
fi
+# Delete backend
+if [ -n "$BACKEND" ]; then
+ delete_web_backend
#----------------------------------------------------------#
# Hestia #