borg-backup-nc.sh: fix error in case of Nextcloud path is a symlink.
This commit is contained in:
parent
55a4ff2952
commit
e57583a5d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user