main: fix local_install
This commit is contained in:
parent
a2a27cf6a0
commit
9751a684a0
@ -245,14 +245,14 @@ if [ "$AUTOUPDATE" = "false" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate an ssh key (ed25519) at /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal
|
# Generate an ssh key (ed25519) at /data/coolify/ssh/keys/id.root@host.docker.internal
|
||||||
if [ ! -f /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal ]; then
|
if [ ! -f /data/coolify/ssh/keys/id.root@host.docker.internal ]; then
|
||||||
ssh-keygen -t ed25519 -a 100 -f /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal -q -N "" -C root@coolify
|
ssh-keygen -t ed25519 -a 100 -f /data/coolify/ssh/keys/id.root@host.docker.internal -q -N "" -C root@coolify
|
||||||
chown 9999 /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal
|
chown 9999 /data/coolify/ssh/keys/id.root@host.docker.internal
|
||||||
fi
|
fi
|
||||||
|
|
||||||
addSshKey() {
|
addSshKey() {
|
||||||
cat /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal.pub >>~/.ssh/authorized_keys
|
cat /data/coolify/ssh/keys/id.root@host.docker.internal.pub >>~/.ssh/authorized_keys
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
chmod 600 ~/.ssh/authorized_keys
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user