mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00

We now get a .bashrc by default, so switch the logic to detecting the custom PS1 before putting it in .bashrc. Account for a directory that steamcmd expects.
11 lines
348 B
Bash
Executable file
11 lines
348 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\$ "
|
|
EOF
|
|
|
|
# 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
|