From: Plom Heller Date: Mon, 7 Sep 2026 15:05:56 +0000 (+0200) Subject: Fix "dubious ownership" error on setup_git_mirror.sh. X-Git-Url: https://plomlompom.com/repos/ledger?a=commitdiff_plain;p=confplom Fix "dubious ownership" error on setup_git_mirror.sh. --- diff --git a/setup_scripts/install_server.sh b/setup_scripts/install_server.sh index 494cc25..330a379 100755 --- a/setup_scripts/install_server.sh +++ b/setup_scripts/install_server.sh @@ -31,5 +31,7 @@ scp ${OPTS_SSH_NEW_HOST} "${PATH_REPO_TAR}" "${TARGET}:~" rm -rf "${DIR_TEMP}" msg 'Unpacking repo and running setup script …' -ssh ${OPTS_SSH_NEW_HOST} "${TARGET}" tar xf "${FNAME_REPO_TAR}" +# --no-same-owner owns the files to root, prevening "dubious ownership" when +# running setup_git_mirror.sh on it later! +ssh ${OPTS_SSH_NEW_HOST} "${TARGET}" tar xf "${FNAME_REPO_TAR}" --no-same-owner ssh -t ${OPTS_SSH_NEW_HOST} "${TARGET}" "${PATH_SETUP_SCRIPT}"