forked from docker/borg-server
Compare commits
No commits in common. "master" and "remake" have entirely different histories.
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#dpkg-reconfigure openssh-server
|
||||
|
||||
if [ -n "${BORG_UID}" ]; then
|
||||
usermod -u ${BORG_UID} borg
|
||||
fi
|
||||
|
||||
if [ -n "${BORG_GID}" ]; then
|
||||
groupmod -o -g ${BORG_GID} borg
|
||||
usermod -g ${BORG_GID} borg
|
||||
fi
|
||||
|
||||
if [ ! -z ${BORG_AUTHORIZED_KEYS+x} ]; then
|
||||
mkdir /home/borg/.ssh
|
||||
echo -e $BORG_AUTHORIZED_KEYS > /home/borg/.ssh/authorized_keys
|
||||
chown borg.borg /home/borg/.ssh/authorized_keys
|
||||
chmod og-rwx /home/borg/.ssh/authorized_keys
|
||||
fi
|
||||
|
||||
chown -R borg.borg /home/borg
|
||||
chown -R borg.borg /home/borg/.ssh
|
||||
|
||||
exec /usr/sbin/sshd -D -e
|
||||
Loading…
Reference in New Issue