Explorar el Código

recreate configs web rebuilding domains

Serghey Rodin hace 12 años
padre
commit
d23fbb9ddc
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      bin/v-rebuild-web-domains

+ 6 - 0
bin/v-rebuild-web-domains

@@ -58,6 +58,12 @@ done
 web_conf="/etc/$WEB_SYSTEM/conf.d/vesta.conf"
 proxy_conf="/etc/$PROXY_SYSTEM/conf.d/vesta.conf"
 
+# Touch vesta configs
+touch $web_conf
+if [ ! -z "$PROXY_SYSTEM" ]; then
+    touch $proxy_conf
+fi
+
 # Checking if there is at least 1 domain
 if [ "$domain_counter" -lt 1 ]; then
     # Deleting web configs