jikan-rest/docker-entrypoint.sh
2022-12-03 02:08:19 +05:00

16 lines
231 B
Bash

#!/bin/bash
set -eo pipefail
status=0
if [[ $# -eq 0 ]] ; then
php /app/docker-entrypoint.php
status=$?
else
php /app/docker-entrypoint.php "$@"
status=$?
fi
[[ $status -ne 0 ]] && exit $status
exec rr serve -c .rr.yaml