Commit 0536c64c authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

entrypoint script now execs into the cmd only if there is indeed a cmd given

parent 84f3c398
......@@ -241,7 +241,10 @@ fi
watch_logfiles "$PHP_ACCESS_LOG" "$PHP_ERROR_LOG" "$PHP_SLOW_LOG" &
sleep 1
# let's run the darn thing
echo "+-- running command:"
echo " $@"
exec "$@"
# let's run the darn thing,
# if there is anything to run that is
if [ $# -eq 0 ]; then
echo "+-- running command:"
echo " $@"
exec "$@"
\ No newline at end of file
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