Ernesto Nicolás Carrea 5 years ago
parent
commit
80ef824780
1 changed files with 6 additions and 0 deletions
  1. 6 0
      bin/module/web/setup.inc

+ 6 - 0
bin/module/web/setup.inc

@@ -99,4 +99,10 @@ hestia_module_web_setup() {
 
     # FIXME: move the following to awstats install
     osal_kv_write $HESTIA/conf/hestia.conf 'STATS_SYSTEM' 'awstats'
+
+    # Rebuild mail
+    for user in $($HESTIA/bin/v-list-sys-users plain); do
+        echo "Rebuilding web domains for user $user"
+        $BIN/v-rebuild-web-domains $user 'no' >/dev/null 2>&1
+    done
 }