From: Christian Heller Date: Wed, 5 Mar 2025 21:29:13 +0000 (+0100) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=HEAD;p=config Fix. --- diff --git a/testing/scripts/setup_secrets_user.sh b/testing/scripts/setup_secrets_user.sh index 007ee49..cf09477 100755 --- a/testing/scripts/setup_secrets_user.sh +++ b/testing/scripts/setup_secrets_user.sh @@ -2,6 +2,10 @@ set -e . ./_misc.sh +# to remind user to go online if not yet done +# TODO: replace by actual test +nmtui + BORG_PASSPHRASE="$1" PATH_REPOS="${HOME}/repos" PATH_BORGKEYS="${HOME}/.config/borg/keys" @@ -39,11 +43,16 @@ ssh ${REPOS_SITE_LOGIN} "cd $REMOTE_PATH_REPOS && ls -1" | while read REPO_NAME; done echo "Set up borg and pull in ~/org" -mkdir "${PATH_BORGKEYS}" -tar xf "${PATH_SECRETS}/borg_keyfiles.tar" -C "${PATH_BORGKEYS}" +PATH_TARED_KEYS=borg_keyfiles +mkdir -p "${PATH_BORGKEYS}" +tar xf "${PATH_SECRETS}/${PATH_TARED_KEYS}.tar" +mv "${PATH_TARED_KEYS}"/* "${PATH_BORGKEYS}/" +rmdir "${PATH_TARED_KEYS}" ls -1 "${PATH_BORGKEYS}/" | while read FILENAME; do SERVER_NAME=$(echo "${FILENAME}" | sed 's/.*@//') + set +e ssh-keyscan "${SERVER_NAME}" >> "${PATH_KNOWN_HOSTS}" + set -e done while true; do set +e