don't make user backups if backup ssystem is disabled

This commit is contained in:
Serghey Rodin 2015-06-03 02:22:55 +03:00
commit 61fe8fc2a9

View file

@ -22,6 +22,9 @@ source $VESTA/conf/vesta.conf
# Action #
#----------------------------------------------------------#
if [ -z "$BACKUP_SYSTEM" ]; then
exit
fi
for user in $(ls $VESTA/data/users); do
check_suspend=$(grep "SUSPENDED='no'" $VESTA/data/users/$user/user.conf)
log=$VESTA/log/backup.log