File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# info: update web templates
3- # options: [RESTART]
3+ # options: [RESTART] [SKIP]
44#
55# The function for obtaining updated pack of web templates.
66
1111
1212# Argument definition
1313restart=$1
14+ skip=$2
1415
1516# Includes
1617source $HESTIA /func/main.sh
@@ -43,10 +44,11 @@ for php_ver in $(ls /etc/php/); do
4344done
4445
4546# Rebuilding web domains
46- for user in $( $BIN /v-list-sys-users plain) ; do
47- $BIN /v-rebuild-web-domains $user no
48- done
49-
47+ if [ ! -z " $skip " ]; then
48+ for user in $( $BIN /v-list-sys-users plain) ; do
49+ $BIN /v-rebuild-web-domains $user no
50+ done
51+ fi
5052
5153# ----------------------------------------------------------#
5254# Hestia #
Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ upgrade_filemanager_update_config() {
609609upgrade_rebuild_web_templates () {
610610 if [ " $UPGRADE_UPDATE_WEB_TEMPLATES " = " true" ]; then
611611 echo " [ ! ] Updating default web domain templates..."
612- $BIN /v-update-web-templates
612+ $BIN /v-update-web-templates " no " " skip "
613613 fi
614614}
615615
You can’t perform that action at this time.
0 commit comments