analytics/.gitlab/build-scripts/docker-entrypoint.sh
Niklas Hambüchen 2d413129a7
Fix shell scripts. (#1179)
There were various mistakes in the shell scripts, such as lack of
quoting; they would break them immediately e.g. if `BIN_DIR` contained a space.

Pointed out by `shellcheck`.
2021-07-20 09:43:27 +03:00

16 lines
170 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = 'run' ]; then
exec /app/bin/plausible start
elif [ "$1" = 'db' ]; then
exec /app/"$2".sh
else
exec "$@"
fi
exec "$@"