Skip to content

Commit 058220d

Browse files
author
Kristan Kenney
committed
Skip rebuild of web domains when updating templates
This is done again in a later step during upgrade process and is unnecessary. Added a skip option to the command.
1 parent 311b723 commit 058220d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

bin/v-update-web-templates

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

@@ -11,6 +11,7 @@
1111

1212
# Argument definition
1313
restart=$1
14+
skip=$2
1415

1516
# Includes
1617
source $HESTIA/func/main.sh
@@ -43,10 +44,11 @@ for php_ver in $(ls /etc/php/); do
4344
done
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 #

func/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ upgrade_filemanager_update_config() {
609609
upgrade_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

0 commit comments

Comments
 (0)