From 6caa3816fde1e0ac7c3258b68148d4383536babb Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Thu, 3 May 2018 09:15:26 -0500 Subject: [PATCH] Remove COmanage Registry generated cache files Remove all COmanage Registry cache files that may have been generated while doing version or database updates or enabling plugins. --- comanage-registry-internet2-tier/docker-comanage-entrypoint | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/comanage-registry-internet2-tier/docker-comanage-entrypoint b/comanage-registry-internet2-tier/docker-comanage-entrypoint index ba378a4..35a5725 100755 --- a/comanage-registry-internet2-tier/docker-comanage-entrypoint +++ b/comanage-registry-internet2-tier/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 apache:apache "$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