File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# info: update mail templates
3- # options: [RESTART]
3+ # options: [RESTART] [SKIP]
44#
55# The function for obtaining updated pack of mail templates.
66
1111
1212# Argument definition
1313restart=$1
14+ skip=$2
1415
1516# Includes
1617source $HESTIA /func/main.sh
@@ -24,12 +25,13 @@ source $HESTIA/conf/hestia.conf
2425cp -rf $HESTIA_INSTALL_DIR /templates/mail $HESTIA /data/templates/
2526
2627# Rebuild mail domains if mail services are enabled
27- if [ ! -z $MAIL_SYSTEM ]; then
28- for user in $( $HESTIA /bin/v-list-sys-users plain) ; do
29- $BIN /v-rebuild-mail-domains $user no
30- done
28+ if [ ! -z " $skip " ]; then
29+ if [ ! -z $MAIL_SYSTEM ]; then
30+ for user in $( $HESTIA /bin/v-list-sys-users plain) ; do
31+ $BIN /v-rebuild-mail-domains $user no
32+ done
33+ fi
3134fi
32-
3335# ----------------------------------------------------------#
3436# Hestia #
3537# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ upgrade_rebuild_web_templates() {
616616upgrade_rebuild_mail_templates () {
617617 if [ " $UPGRADE_UPDATE_MAIL_TEMPLATES " = " true" ]; then
618618 echo " [ ! ] Updating default mail domain templates..."
619- $BIN /v-update-mail-templates
619+ $BIN /v-update-mail-templates " no " " skip "
620620 fi
621621}
622622
You can’t perform that action at this time.
0 commit comments