diff options
Diffstat (limited to 'docker/start.sh')
-rwxr-xr-x | docker/start.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docker/start.sh b/docker/start.sh index b560b2bc0a..c824fe911c 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -8,5 +8,9 @@ while read NAME CMD; do chmod +x /app/gogs/docker/s6/$NAME/run done -# Exec S6 as process manager for gogs and dropbear ssh -exec /usr/bin/s6-svscan /app/gogs/docker/s6/ +# Exec CMD or S6 by default if nothing present +if [ $# -gt 0 ];then + exec "$@" +else + exec /usr/bin/s6-svscan /app/gogs/docker/s6/ +fi |