Added eZ Publish maintenance scripts.

This commit is contained in:
Markus Birth 2013-09-09 00:47:38 +02:00
parent 41dd2f072c
commit d1d388297f
3 changed files with 31 additions and 0 deletions

25
clear-all-ezcache.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
df -h | grep sda
for ezc in /var/www/projects/*/*?/bin/php/ezcache.php /var/www/projects/*/*/bin/php/ezcache.php; do
EZ_BIN=`dirname \`dirname "$ezc"\``
EZ_ROOT=`dirname "$EZ_BIN"`
STAMP=`date`
echo "$STAMP - Found eZ4: $EZ_ROOT"
cd "$EZ_ROOT"
/usr/bin/php bin/php/ezcache.php --clear-all -q --purge
cd -
done
for ezc in /var/www/projects/*/ezpublish/console /var/www/projects/*/*/ezpublish/console; do
EZ_ROOT=`dirname \`dirname "$ezc"\``
STAMP=`date`
echo "$STAMP - Found eZ5: $EZ_ROOT"
cd "$EZ_ROOT"
for env in ezpublish/cache/*; do
ENV=`basename "$env"`
echo "Cleaning Environment $ENV..."
/usr/bin/php ezpublish/console cache:clear --no-ansi --no-interaction --env=$ENV
done
cd -
done
df -h | grep sda

3
findinini Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
grep $* -R extension/*/settings/ settings/ --include="*.ini" --include="*.ini.append.php" --color=auto

3
whichini Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
find -L extension/*/settings settings \( -iname "$1.ini" -o -iname "$1.ini.append.php" \) -not -path "*/.svn/*"