mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
don't make user backups if backup ssystem is disabled
This commit is contained in:
parent
8f2baae014
commit
61fe8fc2a9
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ source $VESTA/conf/vesta.conf
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
if [ -z "$BACKUP_SYSTEM" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
for user in $(ls $VESTA/data/users); do
|
for user in $(ls $VESTA/data/users); do
|
||||||
check_suspend=$(grep "SUSPENDED='no'" $VESTA/data/users/$user/user.conf)
|
check_suspend=$(grep "SUSPENDED='no'" $VESTA/data/users/$user/user.conf)
|
||||||
log=$VESTA/log/backup.log
|
log=$VESTA/log/backup.log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue