mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 14:22:40 +01:00
@@ -11,8 +11,13 @@ if [ ! -f "${HOSTKEY}" ]; then
|
||||
ssh-keygen -A
|
||||
fi
|
||||
|
||||
mkdir -p ${HOME}/.ssh
|
||||
source /etc/profile
|
||||
[ "$PUBKEY" ] && echo "$PUBKEY" > ${HOME}/.ssh/authorized_keys
|
||||
|
||||
chown -R git:git ${HOME}
|
||||
chmod -R 755 ${HOME}
|
||||
|
||||
# Fix permissions, if writable
|
||||
if [ -w ${HOME}/.ssh ]; then
|
||||
chown git:git ${HOME}/.ssh && chmod 700 ${HOME}/.ssh/
|
||||
|
||||
Reference in New Issue
Block a user