Skip to content

Commit 61fe8fc

Browse files
committed
don't make user backups if backup ssystem is disabled
1 parent 8f2baae commit 61fe8fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-backup-users

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ source $VESTA/conf/vesta.conf
2222
# Action #
2323
#----------------------------------------------------------#
2424

25+
if [ -z "$BACKUP_SYSTEM" ]; then
26+
exit
27+
fi
2528
for user in $(ls $VESTA/data/users); do
2629
check_suspend=$(grep "SUSPENDED='no'" $VESTA/data/users/$user/user.conf)
2730
log=$VESTA/log/backup.log

0 commit comments

Comments
 (0)