paradoxxxzero_butterfly/docker/run.sh
2015-01-27 11:06:58 -08:00

13 lines
No EOL
297 B
Bash

#!/bin/sh
# Set password
echo "root:${PASSWORD}" | chpasswd
if [ -z ${PORT} ]
then
echo "Starting on default port: 57575"
/opt/app/butterfly.server.py --unsecure --host=0.0.0.0
else
echo "Starting on port: ${PORT}"
/opt/app/butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT}
fi