Control start of SSH
This commit is contained in:
parent
fee2424f68
commit
157ab8609b
6
start
6
start
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
if [ -x /usr/sbin/sshd -a "${SSH_START}" = "TRUE" ]; then
|
||||
[ ! -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user