Update INSTALL.sh

repair will now delete mysql data!
This commit is contained in:
Stefan Pejcic 2024-11-19 18:36:46 +01:00 committed by GitHub
parent 2455fc4386
commit 4962a28847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -864,6 +864,12 @@ docker_compose_up(){
fi
if [ "$REPAIR" = true ]; then
echo "Deleting all existing MySQL data in volume root_openadmin_mysql due to the '--repair' flag."
docker volume rm root_openadmin_mysql > /dev/null 2>&1
fi
# from 0.2.5 we only start mysql by default
cd /root && docker compose up -d openpanel_mysql > /dev/null 2>&1