mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 06:41:17 +00:00

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.
30 lines
547 B
Bash
Executable file
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 $!
|