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

View File

@ -185,10 +185,10 @@ export BORG_REPO="${borgRepo}"
# check borg repo password # check borg repo password
if [ -n "${borgRepoPassword}" ]; then if [ -n "${borgRepoPassword}" ]; then
export BORG_PASSPHRASE="${borgRepoPassword}" export BORG_PASSPHRASE="${borgRepoPassword}"
elif [ "${borgRepoPassword}" = '<none>' ]; then elif [ "${borgRepoPassword}" = 'none' ]; then
export BORG_PASSPHRASE="" export BORG_PASSPHRASE=""
else 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 fi
# export borg remote path, if specified # export borg remote path, if specified