We don't need WebUI to run database commands

This commit is contained in:
Jeroen De Meerleer 2022-09-21 16:13:26 +02:00
parent 2c61095df0
commit d972cc24de
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 41 deletions

View File

@ -90,45 +90,6 @@ else
echo "Will not build the locales..." echo "Will not build the locales..."
fi fi
echo "Run various symfony commands..."
if [[ $DKR_RUN_MIGRATION == "false" ]]; then
echo "Will NOT run migration commands."
else
echo "Running migration commands..."
php bin/console doctrine:migrations:migrate --no-interaction
fi
echo "Current working dir is '$(pwd)'"
# there are 0 upgrade commands
if [[ $DKR_RUN_UPGRADE == "false" ]]; then
echo 'Will NOT run upgrade commands.'
else
echo 'Running upgrade commands...'
fi
# there are 0 verify commands
if [[ $DKR_RUN_VERIFY == "false" ]]; then
echo 'Will NOT run verification commands.'
else
echo 'Running verification commands...'
fi
# report commands
if [[ $DKR_RUN_REPORT == "false" ]]; then
echo 'Will NOT run report commands.'
else
echo 'Running report commands...'
fi
# report commands
if [[ $DEMO_MODE == "true" ]]; then
echo 'Installing demo data'
su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console webcron:demodata"
fi
php bin/console cache:clear php bin/console cache:clear
php bin/console cache:warm php bin/console cache:warm