PHRAS-3144 add plugin post install clean cache (#4238)

* PHRAS-3144 add plugin post install script on worker image

* PHRAS-3144 add plugin post install clean cache
This commit is contained in:
moctardiouf
2023-01-30 12:29:20 +01:00
committed by GitHub
parent d7cf5e3998
commit c95ae5158b

View File

@@ -21,6 +21,20 @@ if [ ${XDEBUG_ENABLED} == "1" ]; then
fi
./docker/phraseanet/plugins/console init
rm -Rf cache/*
chown -R app:app \
cache \
config \
tmp \
logs \
www
if [ -d "plugins/" ];then
chown -R app:app plugins;
fi
if [ -f /etc/ImageMagick-$IMAGEMAGICK_POLICY_VERSION/policy.xml ]; then
if [ ! -d $IMAGEMAGICK_POLICY_TEMPORARY_PATH ]; then