updated update-all.sh

pull/1/head
Cédric Bonhomme 2017-08-25 09:42:36 +02:00
parent 52bd8a618b
commit 20155cfa5f
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 11 additions and 3 deletions

View File

@ -43,7 +43,7 @@ migrate_module() {
}
if [[ ! -f "config/autoload/local.php" && $bypass -eq 0 ]]; then
echo "Configure Monarc (config/autoload/local.php)"
echo "Configure Monarc (config/autoload/local.php)"
exit 1
fi
@ -136,10 +136,18 @@ if [[ $forceClearCache -eq 1 ]]; then
$phpcommand ./public/index.php orm:clear-cache:result
# Clear ZF2 cache
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
if [ -e ./data/cache/upgrade ]
then
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
fi
fi
if [[ $forceClearCache -eq 0 && $bypass -eq 0 ]]; then
# Clear ZF2 cache
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
if [ -e ./data/cache/upgrade ]
then
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
fi
fi
exit 0