chrly/docker-entrypoint.sh
2023-12-15 03:42:38 +01:00

13 lines
202 B
Bash
Executable File

#!/bin/sh
set -e
if [ ! -d /data/capes ]; then
mkdir -p /data/capes
fi
if [ "$1" = "serve" ] || [ "$1" = "token" ] || [ "$1" = "version" ]; then
set -- /usr/local/bin/chrly "$@"
fi
exec "$@"