-
-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into smarturls
- Loading branch information
Showing
35 changed files
with
485 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#! /bin/bash | ||
#! /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 | ||
|
||
# start evennia server; log to server.log but also output to stdout so it can | ||
# be viewed with docker-compose logs | ||
exec 3>&1; evennia start -l | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.