residentsleeper/docker/entrypoint.sh

12 lines
218 B
Bash
Raw Normal View History

2020-07-10 02:09:58 +00:00
#!/bin/sh
if [ -z "$SERVER_PATH" ]; then
SERVER_PATH="/data"
fi
SCRIPT_PATH="$SERVER_PATH/scripts"
if [ -d "/scripts" ]; then
SCRIPT_PATH="/scripts"
fi
/usr/bin/sleeper -dir $SERVER_PATH -scriptPath $SCRIPT_PATH