Files
random-pseudonyme-generator/entrypoint.sh
2024-11-19 22:28:04 +01:00

15 lines
299 B
Bash

#!/bin/sh
if [ -z "$1" ]; then
echo "No command provided"
exit 1
fi
if [ "$1" = "start" ]; then
echo "Running the command: python /app/pyrpg.py ${NUMBER_OF_PSEUDONYMS:-100}"
python /app/pyrpg.py ${NUMBER_OF_PSEUDONYMS:-100}
else
echo "Running the command: $@"
exec "$@"
fi