0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-01 13:00:56 -05:00

Merge branch 'master' into alpine-3.7

This commit is contained in:
Adrian Dvergsdal 2018-01-23 22:44:28 +01:00
commit 39c3cfd298
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -88,7 +88,9 @@ function createUser() {
# Add SSH keys to authorized_keys with valid permissions
if [ -d /home/$user/.ssh/keys ]; then
cat /home/$user/.ssh/keys/* >> /home/$user/.ssh/authorized_keys
for publickey in /home/$user/.ssh/keys/*; do
cat $publickey >> /home/$user/.ssh/authorized_keys
done
chown $uid /home/$user/.ssh/authorized_keys
chmod 600 /home/$user/.ssh/authorized_keys
fi