residentsleeper/docker/entrypoint.sh

12 lines
218 B
Bash

#!/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