1
0
mirror of https://github.com/deStrO/eBot-docker.git synced 2025-12-10 03:22:49 +01:00
2023-10-13 19:03:36 +02:00

37 lines
681 B
Bash

#!/bin/bash
# Check if the .installed file exists
if [ ! -f .installed ]; then
git config --global http.sslverify false
git clone https://github.com/deStrO/eBot-CSGO-Web.git temp
cp -n -R temp/* eBot-CSGO-Web && rm -rf temp
cd eBot-CSGO-Web
sleep 30
php symfony cc
php symfony doctrine:build --all --no-confirmation
php symfony guard:create-user --is-super-admin $EBOT_ADMIN_EMAIL $EBOT_ADMIN_LOGIN $EBOT_ADMIN_PASSWORD
rm -rf web/installation
cd ..
touch .installed
php-fpm
else
echo "eBot Web is already installed. Skipping setup."
cd eBot-CSGO-Web
php symfony cc
echo "Clearing cache"
php-fpm
fi