From 4f446cc1897cadc0c4994a0632ff37d68dad30bf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 5 Dec 2024 09:53:31 +0100 Subject: [PATCH] Create directories for ssh files --- scripts/Common/OS/setup.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Common/OS/setup.fish b/scripts/Common/OS/setup.fish index 697e15e3..9ddd383f 100755 --- a/scripts/Common/OS/setup.fish +++ b/scripts/Common/OS/setup.fish @@ -51,6 +51,8 @@ function runSetup if [ -n "$VALHALLA_BACKUP_SERVER_KEY" ] set -l knownHosts /root/.ssh/known_hosts + mkdir -p (dirname "$mountDir$VALHALLA_BACKUP_SERVER_KEY") + mkdir -p (dirname "$mountDir$knownHosts") cp "$VALHALLA_BACKUP_SERVER_KEY" "$mountDir$VALHALLA_BACKUP_SERVER_KEY" cp $knownHosts "$mountDir$knownHosts" end