Skip to content

Commit

Permalink
Better handling of CakePHP cache files during startup
Browse files Browse the repository at this point in the history
Better handling of CakePHP cache files during startup by just
removing the cache files entirely.
  • Loading branch information
skoranda committed May 29, 2018
1 parent 40d0547 commit 8986f0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions comanage-registry-shibboleth-sp/docker-comanage-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8986f0d

Please sign in to comment.