From e57583a5d91cb26ee2ab816e80a549800da6018e Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 3 Jul 2024 12:41:24 +0200 Subject: [PATCH] borg-backup-nc.sh: fix error in case of Nextcloud path is a symlink. --- borg-backup-nc.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/borg-backup-nc.sh b/borg-backup-nc.sh index df88f1e..73651eb 100755 --- a/borg-backup-nc.sh +++ b/borg-backup-nc.sh @@ -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