mirror of
https://github.com/nicolabs/git-server-docker.git
synced 2026-04-11 00:15:00 +02:00
15 lines
307 B
Bash
15 lines
307 B
Bash
#!/bin/sh
|
|
|
|
cd /home/git
|
|
|
|
# Si hay alguna clave pública en la carpeta de keys
|
|
if [ "$(ls -A /git-server/keys/)" ]; then
|
|
cat /git-server/keys/*.pub >> .ssh/authorized_keys
|
|
chown -R git:git .ssh
|
|
chmod 700 .ssh
|
|
chmod -R 600 .ssh/*
|
|
fi
|
|
|
|
# Bandera -D para que no se ejecute como demonio
|
|
/usr/sbin/sshd -D
|