From ea2a13dff27634a61f6556e1754b90f6c1f864be Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 25 May 2023 13:29:15 +0200 Subject: [PATCH] ah --- scripts/install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index e5f17d951..e8dacf7aa 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -25,8 +25,8 @@ if ! [ -x "$(command -v docker)" ]; then fi mkdir -p /data/coolify/deployments -mkdir -p /data/coolify/ssh-keys -mkdir -p /data/coolify/proxy +mkdir -p /data/coolify/ssh/keys +mkdir -p /data/coolify/ssh/mux mkdir -p /data/coolify/source chown -R 9999:root /data @@ -46,14 +46,14 @@ if [ ! -f /data/coolify/source/.env ]; then sed -i "s|REDIS_PASSWORD=.*|REDIS_PASSWORD=$(openssl rand -base64 32)|g" /data/coolify/source/.env fi -# 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 -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 +# 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 -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/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 }