mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
backup system 92% is done
This commit is contained in:
parent
adf54b9ae9
commit
5e09a913fd
4 changed files with 198 additions and 19 deletions
|
@ -1364,3 +1364,12 @@ get_config_value() {
|
|||
# Print value
|
||||
echo "$value"
|
||||
}
|
||||
|
||||
is_backup_enabled() {
|
||||
backups=$(grep "BACKUPS='" $V_USERS/$user/user.conf |cut -f 2 -d \')
|
||||
if [ -z "$backups" ] || [[ "$backups" -le '0' ]]; then
|
||||
echo "Error: User backups are disabled"
|
||||
log_event 'debug' "$E_BACKUP_DISABLED $V_EVENT"
|
||||
exit $E_BACKUP_DISABLED
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue