Commit 157ab860 authored by Deon George's avatar Deon George
Browse files

Control start of SSH

parent fee2424f
Pipeline #167 passed with stage
in 2 minutes and 21 seconds
#!/bin/sh
set -ex
[ ! -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
if [ -x /usr/sbin/sshd -a "${SSH_START}" = "TRUE" ]; then
[ ! -d /var/run/sshd ] && mkdir /var/run/sshd
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 "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment