server-origin/run-checkerwars.sh

21 lines
440 B
Bash
Raw Normal View History

2024-08-08 06:01:49 +05:00
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo -e "\033[31mThis script requires superuser rights.\033[0m"
exit 0
fi
DEV_ENV="/data/secrets/dev.env"
INSTALL_DIR="/data/install"
trap 'echo -e "\033[31mSomething went wrong\033[0m"; exit 1' ERR
set -e
export DEBIAN_FRONTEND=noninteractive
source $DEV_ENV
bash $INSTALL_DIR/remote.sh $SERVER_BEGETCW_HOST $SERVER_BEGETCW_PASSWORD
trap - ERR
echo "server-origin install complete"