Removed trailing slash on base_dir variable. Type-matched clean503 var.
This commit is contained in:
parent
aca45311ea
commit
0d1e85179a
@ -166,7 +166,7 @@ function cleanup {
|
|||||||
|
|
||||||
## remove 503 error page
|
## remove 503 error page
|
||||||
# check value of 'clean503' to see if this is necessary (=1) otherwise, skip
|
# check value of 'clean503' to see if this is necessary (=1) otherwise, skip
|
||||||
if [ "$clean503" -eq 1 ]; then
|
if [ "$clean503" = "1" ]; then
|
||||||
# proceed with cleanup
|
# proceed with cleanup
|
||||||
echo -e "${op}${stamp} Removing 503 error page..." >> "$logFile"
|
echo -e "${op}${stamp} Removing 503 error page..." >> "$logFile"
|
||||||
rm -f "$webroot/$err503File" >> "$logFile" 2>&1
|
rm -f "$webroot/$err503File" >> "$logFile" 2>&1
|
||||||
@ -559,7 +559,7 @@ else
|
|||||||
quit
|
quit
|
||||||
fi
|
fi
|
||||||
echo -e "${op}${stamp} Borg base dir... OK${normal}" >> "$logFile"
|
echo -e "${op}${stamp} Borg base dir... OK${normal}" >> "$logFile"
|
||||||
export BORG_BASE_DIR="${borgConfig[0]}"
|
export BORG_BASE_DIR="${borgConfig[0]%/}"
|
||||||
fi
|
fi
|
||||||
# check: path to SSH keyfile
|
# check: path to SSH keyfile
|
||||||
if [ -z "${borgConfig[1]}" ]; then
|
if [ -z "${borgConfig[1]}" ]; then
|
||||||
@ -628,7 +628,7 @@ if [ -n "$borgXtra" ]; then
|
|||||||
else
|
else
|
||||||
# no extra locations specified
|
# no extra locations specified
|
||||||
echo -e "${op}${stamp} No additional locations specified for backup." \
|
echo -e "${op}${stamp} No additional locations specified for backup." \
|
||||||
"only NextCloud data files will be backed up${normal}" >> "$logFile"
|
"Only NextCloud data files will be backed up${normal}" >> "$logFile"
|
||||||
exitWarn+=('2116')
|
exitWarn+=('2116')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user