dayzdockerserver/web/bin/start.sh
Daniel Ceregatti 53dea0f45d Second working version with vite-express integration.
Replace Bootstrap with Privemue.
Add i18n support. English and Brazilian Portuguese to start.
New UI with Primevue. Use tabbed menu, nice theme, etc..
WIP with Steam login.
2024-07-29 07:54:16 -07:00

30 lines
547 B
Bash
Executable file

#!/usr/bin/env bash
set -eE
trap '
echo "Shutting down..."
' SIGINT SIGTERM
# Set PS1 so we know we're in the container
if ! grep -q "dz-web" .bashrc
then
echo "Adding PS1 to .bashrc..."
cat >> .bashrc <<EOF
alias ls='ls --color'
export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
unset DEVELOPMENT
export PATH=${PATH}:/usr/local/dotnet
EOF
fi
# Shut steamcmd up
if ! [ -d ${HOME}/.steam ]
then
mkdir -p ${HOME}/.steam
fi
cd /web
#export DEBUG=express:*
npm run dev &
wait $!