borg-backup-nc.sh: fix error in case of Nextcloud path is a symlink.

This commit is contained in:
Christoph 2024-07-03 12:41:24 +02:00
parent 55a4ff2952
commit e57583a5d9

View File

@ -270,6 +270,8 @@ if [[ -z "${NC_PATH}" ]] ; then
fatal "Nextcloud's DocumentRoot directory not found!"
if [[ -h "${NC_PATH}" ]] ; then
BORG_NC_PATH="${NC_PATH} $(realpath "${NC_PATH}")"
else
BORG_NC_PATH="${NC_PATH}"
fi
if [[ -z "${BORG_HOST}" ]] ; then