From d3e66dde3c919c2021d17ce5a0395730e56404b3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 31 Mar 2025 10:50:11 +0200 Subject: [PATCH] Fixes. --- bookworm/scripts/lib/constants_repopaths | 3 +-- testing/scripts/setup_secrets.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bookworm/scripts/lib/constants_repopaths b/bookworm/scripts/lib/constants_repopaths index 7746987..bc02038 100644 --- a/bookworm/scripts/lib/constants_repopaths +++ b/bookworm/scripts/lib/constants_repopaths @@ -1,3 +1,2 @@ PATH_SCRIPTS="$(dirname $(pwd))" -PATH_CONF="$(dirname ${SCRIPTS_DIR})" - +PATH_CONF="$(dirname ${PATH_DIR})" diff --git a/testing/scripts/setup_secrets.sh b/testing/scripts/setup_secrets.sh index 41e9f7b..d69ae8b 100755 --- a/testing/scripts/setup_secrets.sh +++ b/testing/scripts/setup_secrets.sh @@ -50,7 +50,7 @@ chown -R "${USERNAME}:${USERNAME}" "${PATH_SECRETS}" export BORG_PASSPHRASE="${PASSPHRASE}" PATH_TMP_REPO="$(path_tmp_timestamped configrepo)" -cp -a "${PATH_REPO}" "${PATH_TMP_REPO}" +cp -a "${PATH_REPO}" "${PATH_TMP_REPO}" chown -R "${USERNAME}:${USERNAME}" "${PATH_TMP_REPO}" su -l "${USERNAME}" --whitelist-environment=PATH_SECRETS,BORG_PASSPHRASE -c "/bin/sh ${PATH_TMP_REPO}/${PATH_REL_SETUP_SECRETS_USER}" rm -rf "${PATH_TMP_REPO}" -- 2.30.2