From 8986f0d8bfd67b73624317f89df05e30b01e04a2 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Tue, 29 May 2018 09:08:24 -0500 Subject: [PATCH] Better handling of CakePHP cache files during startup Better handling of CakePHP cache files during startup by just removing the cache files entirely. --- comanage-registry-shibboleth-sp/docker-comanage-entrypoint | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/comanage-registry-shibboleth-sp/docker-comanage-entrypoint b/comanage-registry-shibboleth-sp/docker-comanage-entrypoint index 532e2a2..1fb302b 100755 --- a/comanage-registry-shibboleth-sp/docker-comanage-entrypoint +++ b/comanage-registry-shibboleth-sp/docker-comanage-entrypoint @@ -248,9 +248,8 @@ if [ -n "$COMANAGE_REGISTRY_ENABLE_PLUGIN" ]; then done fi -# Running CakePHP console commands generates cache files so -# set the ownership of those files appropriately. -chown -R www-data:www-data "$COMANAGE_REGISTRY_DIR/app/tmp" +# Remove any cache files generated thus far. +find "$COMANAGE_REGISTRY_DIR/app/tmp/cache" -type f -exec rm -f {} \; # If defined use configured location of Apache HTTP Server # HTTPS certificate and key files. The certificate file may also