Fix default value for user and group…

This commit is contained in:
Jeremy Gardais 2021-04-14 10:15:52 +02:00
parent d1b2bc5e48
commit bffe5b0a6e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 12 additions and 0 deletions

View File

@ -103,6 +103,18 @@ define_vars() { # {{{
retention_time="${DEFAULT_RETENTION_TIME}" retention_time="${DEFAULT_RETENTION_TIME}"
fi fi
## }}} ## }}}
## If user_bkp_dir wasn't defined {{{
if [ -z "${user_bkp_dir}" ]; then
## Use default user as owner of backup files
user_bkp_dir="${DEFAULT_USER}"
fi
## }}}
## If group_bkp_dir wasn't defined {{{
if [ -z "${group_bkp_dir}" ]; then
## Use default group for backup files
group_bkp_dir="${DEFAULT_GROUP}"
fi
## }}}
} }
# }}} # }}}