From 92e0f077a48281ef191dcfe496d5d7c7032fb210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 29 May 2026 16:04:04 +0200 Subject: [PATCH] Changed known_hosts file location. --- script/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/deploy.sh b/script/deploy.sh index 4286403..2ad479b 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -130,7 +130,7 @@ setup_ssh() { If you are unsure, it is always better to check manually.\n" gum confirm "Remove the old fingerprint and accept the new one ?" || { echo -e "\n\n ❌ SSH fingerprints don't match."; exit 22; } - sed -i '/${LIVE_TARGET_IP}/d' "~/.ssh/known_hosts" + sed -i '/${LIVE_TARGET_IP}/d' "/home/${USER}/.ssh/known_hosts" fi if sshpass -p "${LIVE_TARGET_PASSWORD}" ssh-copy-id -o StrictHostKeyChecking=no -i "${TMP_EXTRA_PATH}/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${LIVE_TARGET_IP}" >> "${STDOUT}" 2>> "${STDERR}"; then