Skip to content

Commit 0674db5

Browse files
committed
Revert "Squashed commit of the following:"
This reverts commit 370cfce. Unsuccessful try to merge pull request 1 manually.
1 parent 370cfce commit 0674db5

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

start.sh

100755100644
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/bin/sh
22

3-
_term() {
4-
echo "Caught SIGTERM signal!"
5-
kill -TERM "$child" 2>/dev/null
6-
}
7-
8-
trap _term SIGTERM
9-
103
ssh-keygen -A
114

125
# If there are some public keys in keys folder
@@ -27,7 +20,5 @@ if [ "$(ls -A /git-server/repos/)" ]; then
2720
find /git-server/repos -type d -exec chmod g+s '{}' +
2821
fi
2922

30-
/usr/sbin/sshd -D &
31-
32-
child=$!
33-
wait "$child"
23+
# -D flag avoids executing sshd as a daemon
24+
/usr/sbin/sshd -D

0 commit comments

Comments
 (0)