mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 06:57:16 +02:00
18 lines
407 B
Bash
Executable file
18 lines
407 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
|