#!/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