From 931075687ad36c6e3a28e642673c365d77c1ae86 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 20 Oct 2010 16:20:52 +0000 Subject: [PATCH] Fix for Trac #289: setup now checks that the "setup" directory is writeable. SVN:trunk[909] --- setup/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup/index.php b/setup/index.php index c9ed49ceb..6e42d3d69 100644 --- a/setup/index.php +++ b/setup/index.php @@ -1179,6 +1179,15 @@ else $oP->output(); exit; } + if (!is_writable(dirname(FINAL_CONFIG_FILE).'/setup')) + { + $oP->add("

iTop configuration wizard

\n"); + $oP->add("

Fatal error

\n"); + $oP->error("Error: the directory where to store temporary setup files is not writable."); + $oP->p("The wizard cannot create operate. Please make sure that the directory '".realpath(dirname(FINAL_CONFIG_FILE))."/setup' is writable for the web server."); + $oP->output(); + exit; + } } try