mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 13:37:17 +02: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.
18 lines
409 B
Bash
Executable file
18 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
|