mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-10-13 21:43:30 +00:00
19 lines
518 B
Bash
Executable file
19 lines
518 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Set PS1 so we know we're in the container, should we exec into it.
|
|
cat > .bashrc <<EOF
|
|
alias ls='ls --color'
|
|
export PS1="${debian_chroot:+($debian_chroot)}\u@dz-server:\w\$ "
|
|
export TERM=screen.xterm-256color
|
|
unset DEVELOPMENT
|
|
EOF
|
|
|
|
# Start the Xvfb display server in the background
|
|
Xvfb ${DISPLAY} -screen 0 1024x768x24 &
|
|
|
|
# Let it start up
|
|
sleep 5
|
|
|
|
# Start the server.
|
|
# If the DEVELOPMENT environment variable is set to 1, the container will just block and not start the server.
|
|
exec dz start
|