Create directories for ssh files

This commit is contained in:
Manuel Thalmann 2024-12-05 09:53:31 +01:00
parent 8096e627ff
commit c6b754f774

View file

@ -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