From ca8317079eeadbcd78031dc25bfebe62a866a5bc Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 13 Dec 2021 17:06:38 +0900 Subject: [PATCH] Add info to gitea backup module --- borg.backup.gitea.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/borg.backup.gitea.sh b/borg.backup.gitea.sh index 94a84cb..cdc21aa 100755 --- a/borg.backup.gitea.sh +++ b/borg.backup.gitea.sh @@ -16,6 +16,8 @@ BACKUP_INIT_CHECK="borg.backup.gitea.init"; # if info print info and then abort run . "${DIR}/borg.backup.functions.info.sh"; +# NOTE: because a tmp directory is needed it is more recommended +# to run this as root and have only the dump command itself run as GIT_USER # set git user if [ -z "${GIT_USER}" ]; then GIT_USER="git"; @@ -58,6 +60,8 @@ if [ ${DEBUG} -eq 1 ] || [ ${DRYRUN} -eq 1 ]; then fi; if [ ${DRYRUN} -eq 0 ]; then ( + # below was an old workaround + #export USER="${LOGNAME}" # workaround for broken gitea EUID check # make sure temp folder is there and is set as git. user if [ ! -d "${GITEA_TMP}" ]; then mkdir -p "${GITEA_TMP}";