mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 19:15:03 +03:00
2d413129a7
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`.
16 lines
170 B
Bash
Executable File
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 "$@"
|
|
|