From 446ae70e0e4fb54d69974f9fed64ce8e9e876bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Wed, 11 May 2022 10:50:23 +0200 Subject: [PATCH] Fix ssh-copy-id helper --- start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/start.sh b/start.sh index 6fdee74..da6cf34 100755 --- a/start.sh +++ b/start.sh @@ -131,6 +131,13 @@ if [ -e /srv/conf/openssl.cnf ]; then cp /srv/conf/openssl.cnf /etc/ssl/openssl.cnf fi +# Fix ssh-copy-id helper +if [ ! -e /srv/.ssh/authorized_keys ]; then + mkdir -p /etc/dropbear/authorized_key + chown app:app /etc/dropbear/authorized_key + ln -s /srv/.ssh/authorized_keys /etc/dropbear/authorized_key +fi + #################### # Default Nginx page ####################