Create directories for ssh files
This commit is contained in:
parent
8096e627ff
commit
c6b754f774
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ function runSetup
|
||||||
|
|
||||||
if [ -n "$VALHALLA_BACKUP_SERVER_KEY" ]
|
if [ -n "$VALHALLA_BACKUP_SERVER_KEY" ]
|
||||||
set -l knownHosts /root/.ssh/known_hosts
|
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 "$VALHALLA_BACKUP_SERVER_KEY" "$mountDir$VALHALLA_BACKUP_SERVER_KEY"
|
||||||
cp $knownHosts "$mountDir$knownHosts"
|
cp $knownHosts "$mountDir$knownHosts"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue