Fix ssh-copy-id helper
This commit is contained in:
parent
f3a256f8d6
commit
446ae70e0e
1 changed files with 7 additions and 0 deletions
7
start.sh
7
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
|
||||
####################
|
||||
|
|
Loading…
Reference in a new issue