mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 13:52:27 +00:00
15 lines
401 B
Text
15 lines
401 B
Text
|
#!/bin/sh
|
||
|
|
||
|
if [ -n "$PUBLISH_ADDR" ]; then
|
||
|
echo "Enabling Doghouse access at http://$PUBLISH_ADDR:8182/doghouse"
|
||
|
sed -i "s#<base-uri>.*</base-uri>#<base-uri>http://$PUBLISH_ADDR</base-uri>#" /config/rexster.xml
|
||
|
fi
|
||
|
|
||
|
if [ -n "$SCRIPT" ]; then
|
||
|
echo "Running Gremlin script $SCRIPT from /scripts..."
|
||
|
gremlin -e /scripts/$SCRIPT
|
||
|
fi
|
||
|
|
||
|
echo "Starting Rexster..."
|
||
|
/opt/rexster-server/bin/rexster.sh $*
|