dayzdockerserver/files/webserver.sh
Daniel Ceregatti 5267ae70bb Add web UI. This has lofty goals.
Use node js module syntax.
Make dev easier by not starting the web UI from docker startup.
2023-05-24 23:40:44 -07:00

21 lines
437 B
Bash
Executable file

#!/usr/bin/env bash
# Set PS1 so we know we're in the container
if ! [ -f .bashrc ]
then
echo "Creating .bashrc..."
cat > .bashrc <<EOF
alias ls='ls --color'
export PS1="${debian_chroot:+($debian_chroot)}\u@dz-main:\w\$ "
EOF
fi
# Uncomment the lines below to run things manually in the container, then run:
# docker compose exec main bash
tail -f /dev/null
exit 0
# Otherwise, start the server normally
cd /web
npm i
node index.js