mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2025-01-12 04:18:13 +00:00
14 lines
413 B
Bash
Executable file
14 lines
413 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# if command starts with an option, prepend the default command and options
|
|
if [ "${1:0:1}" = '-' ]; then
|
|
set -- butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT:-57575} "$@"
|
|
elif [ "$1" = 'butterfly.server.py' ]; then
|
|
shift
|
|
set -- butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT:-57575} "$@"
|
|
fi
|
|
|
|
# Set password
|
|
echo "root:${PASSWORD:-password}" | chpasswd
|
|
|
|
exec "$@"
|