Create directories for ssh files
This commit is contained in:
parent
aebc398989
commit
4f446cc189
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue