From f15e0a1682e39deff65b2d3aebaffd71a67e2630 Mon Sep 17 00:00:00 2001 From: Gary Date: Fri, 23 Feb 2024 16:31:43 -0800 Subject: [PATCH] main: fix local_install --- scripts/local_install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/local_install.sh b/scripts/local_install.sh index c13312ff2..a07fc5cad 100644 --- a/scripts/local_install.sh +++ b/scripts/local_install.sh @@ -245,14 +245,14 @@ if [ "$AUTOUPDATE" = "false" ]; then fi fi -# Generate an ssh key (ed25519) at /data/coolify/storage/app/ssh/keys/id.root@host.docker.internal -if [ ! -f /data/coolify/storage/app/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 - chown 9999 /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/ssh/keys/id.root@host.docker.internal ]; then + 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/ssh/keys/id.root@host.docker.internal fi 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 }