change no borg repo passwd identifier

This commit is contained in:
Asif Bacchus 2020-03-26 03:46:48 -06:00
parent 099be9ff89
commit 515e57e4f3
1 changed files with 2 additions and 2 deletions

View File

@ -185,10 +185,10 @@ export BORG_REPO="${borgRepo}"
# check borg repo password
if [ -n "${borgRepoPassword}" ]; then
export BORG_PASSPHRASE="${borgRepoPassword}"
elif [ "${borgRepoPassword}" = '<none>' ]; then
elif [ "${borgRepoPassword}" = 'none' ]; then
export BORG_PASSPHRASE=""
else
consoleError 2 "$varsFile: 'borgRepoPassword' must be specified or must be '<none>' if no password has been set (VERY INSECURE!)."
consoleError 2 "$varsFile: 'borgRepoPassword' must be specified or must be 'none' if no password has been set (VERY INSECURE!)."
fi
# export borg remote path, if specified