Fix ssh-copy-id helper
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build was killed Details

This commit is contained in:
Adam Štrauch 2022-05-11 10:50:23 +02:00
parent f3a256f8d6
commit 446ae70e0e
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 7 additions and 0 deletions

View File

@ -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
####################