diff options
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r-- | include/sanity_check.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php index c12c09334..4fe28c307 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -21,6 +21,14 @@ $err_msg = "HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)"; } + if (!is_writable(CACHE_DIR . "/images")) { + $err_msg = "Image cache is not writable (chmod -R 777 ".CACHE_DIR."/images)"; + } + + if (!is_writable(CACHE_DIR . "/export")) { + $err_msg = "Data export cache is not writable (chmod -R 777 ".CACHE_DIR."/export)"; + } + if (GENERATED_CONFIG_CHECK != EXPECTED_CONFIG_VERSION) { $err_msg = "Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh"; } |