set default variable values
This commit is contained in:
parent
d14bc2a77f
commit
fabea27ffd
@ -51,20 +51,31 @@ stamp () {
|
||||
|
||||
### default variable values
|
||||
|
||||
## script related
|
||||
# store logfile in the same directory as this script file using the same file
|
||||
# name as the script but with the extension '.log'
|
||||
scriptPath="$( CDPATH= cd -- "$( dirname -- "$0" )" && pwd -P )"
|
||||
scriptName="$( basename "$0" )"
|
||||
logFile="$scriptPath/${scriptName%.*}.log"
|
||||
# borg output verbosity -- normal
|
||||
borgCreateParams='--stats'
|
||||
borgPruneParams='--list'
|
||||
detailsFile="$scriptPath/seafbackup.details"
|
||||
|
||||
# seafile service
|
||||
# 503 related
|
||||
err503Path="$scriptPath/503_backup.html"
|
||||
err503File="${err503Path##*/}"
|
||||
webroot="/usr/share/nginx/html"
|
||||
|
||||
# seafile related
|
||||
offlineBackup=0
|
||||
seafSvc="seafile.service"
|
||||
seafHub="seahub.service"
|
||||
|
||||
# seafile directories
|
||||
seafUser="seafile"
|
||||
seafDir="/opt/seafile"
|
||||
dataDir="/var/seafile"
|
||||
seafData="/var/seafile"
|
||||
|
||||
|
||||
|
||||
### start logging
|
||||
printf "${mag}[%s] --- Start %s execution ---${norm}\n" \
|
||||
|
Loading…
Reference in New Issue
Block a user