Control start of SSH

This commit is contained in:
Deon George 2017-12-14 09:40:56 +11:00
parent fee2424f68
commit 157ab8609b

6
start
View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
set -ex
if [ -x /usr/sbin/sshd -a "${SSH_START}" = "TRUE" ]; then
[ ! -d /var/run/sshd ] && mkdir /var/run/sshd [ ! -d /var/run/sshd ] && mkdir /var/run/sshd
[ -x /usr/sbin/sshd ] && start-stop-daemon --start --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- -p 22 start-stop-daemon --start --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- -p 22
fi
echo "Starting php [$@]"
exec /usr/local/bin/docker-php-entrypoint "$@" exec /usr/local/bin/docker-php-entrypoint "$@"