From 545a27015457413e6d684e28d2d7daa18eb30348 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 29 Aug 2016 19:49:31 +0100 Subject: [PATCH] move cache to /config subfolder, in case it gets large and balloons the container --- root/defaults/config_local.php | 2 +- root/etc/cont-init.d/40-config | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/root/defaults/config_local.php b/root/defaults/config_local.php index 2810ec8..37afa4d 100644 --- a/root/defaults/config_local.php +++ b/root/defaults/config_local.php @@ -37,7 +37,7 @@ * especially useful for lower power hosts */ $config['cops_thumbnail_handling'] = ""; - $config['cops_thumbnail_cache_directory'] = "/cache/"; + $config['cops_thumbnail_cache_directory'] = "/config/cache/"; /* * Enable and configure Send To Kindle (or Email) feature. * diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 43bdf89..30971eb 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -2,7 +2,7 @@ # create folders mkdir -p \ - /cache + /config/cache # make symlink [[ ! -e /var/www/localhost/cops ]] && \ @@ -15,7 +15,6 @@ cp /config/config_local.php /var/www/localhost/cops/ # permissions chown -R abc:abc \ - /cache \ /config \ /usr/share/webapps/cops \ var/www/localhost/cops