Skip to content

Commit

Permalink
Issue RotherOSS/otobo-docker#46: print a usage message
Browse files Browse the repository at this point in the history
when no parameter is passed
  • Loading branch information
bschmalhofer committed Apr 29, 2021
1 parent c550123 commit 84ebcb3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ fi

# now running as $OTOBO_USER

# Run the OTOBO Daemon the webserver
if [ "$1" = "" ]; then
cat <<END_HELP
This script is meant to be used as a Docker entrypoint script.
Supported arguments are: 'daemon', 'web', 'copy_otobo_next', 'do_update_tasks'.
When no argument is passed, then this message is printed.
Any other argument list will be executed as a system command.
END_HELP

exit 0
fi

# Run the OTOBO Daemon the webserver
if [ "$1" = "daemon" ]; then
start_and_check_daemon
Expand Down

0 comments on commit 84ebcb3

Please sign in to comment.