dockerfiles/base/php-nginx/php/7.4-alpine/conf/bin/entrypoint.d/root.sh

15 lines
273 B
Bash

#!/usr/bin/env bash
#############################################
## Root shell
#############################################
if [ "$#" -eq 1 ]; then
## No command, fall back to interactive shell
exec bash
else
## Exec root command
shift
exec "$@"
fi