mirror of
https://github.com/evennia/evennia.git
synced 2025-10-29 19:35:56 +00:00
Fixed an unquoted shell test. This was generating a "sh: start: unknown operand" message in the startup log when the default "evennia start --log" args were passed in.
19 lines
409 B
Bash
Executable File
19 lines
409 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# called by the Dockerfile to start the server in docker mode
|
|
|
|
# remove leftover .pid files (such as from when dropping the container)
|
|
rm /usr/src/game/server/*.pid >& /dev/null || true
|
|
|
|
PS1="evennia|docker \w $ "
|
|
|
|
cmd="$@"
|
|
output="Docker starting with argument '$cmd' ..."
|
|
if test -z "$cmd"; then
|
|
cmd="bash"
|
|
output="No argument given, starting shell ..."
|
|
fi
|
|
|
|
echo $output
|
|
exec 3>&1; $cmd
|