|
@@ -1214,21 +1214,21 @@ else
|
|
{
|
|
{
|
|
// No configuration file yet
|
|
// No configuration file yet
|
|
// Check that the wizard can write into the root dir to create the configuration file
|
|
// Check that the wizard can write into the root dir to create the configuration file
|
|
- if (!is_writable(dirname(FINAL_CONFIG_FILE)))
|
|
|
|
|
|
+ if (!is_writable(dirname(TMP_CONFIG_FILE)))
|
|
{
|
|
{
|
|
$oP->add("<h1>iTop configuration wizard</h1>\n");
|
|
$oP->add("<h1>iTop configuration wizard</h1>\n");
|
|
$oP->add("<h2>Fatal error</h2>\n");
|
|
$oP->add("<h2>Fatal error</h2>\n");
|
|
$oP->error("<b>Error:</b> the directory where to store the configuration file is not writable.");
|
|
$oP->error("<b>Error:</b> the directory where to store the configuration file is not writable.");
|
|
- $oP->p("The wizard cannot create the configuration file for you. Please make sure that the directory '<b>".realpath(dirname(FINAL_CONFIG_FILE))."</b>' is writable for the web server.");
|
|
|
|
|
|
+ $oP->p("The wizard cannot create the configuration file for you. Please make sure that the directory '<b>".realpath(dirname(TMP_CONFIG_FILE))."</b>' is writable for the web server.");
|
|
$oP->output();
|
|
$oP->output();
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
- if (!is_writable(dirname(FINAL_CONFIG_FILE).'/setup'))
|
|
|
|
|
|
+ if (!is_writable(dirname(TMP_CONFIG_FILE).'/setup'))
|
|
{
|
|
{
|
|
$oP->add("<h1>iTop configuration wizard</h1>\n");
|
|
$oP->add("<h1>iTop configuration wizard</h1>\n");
|
|
$oP->add("<h2>Fatal error</h2>\n");
|
|
$oP->add("<h2>Fatal error</h2>\n");
|
|
$oP->error("<b>Error:</b> the directory where to store temporary setup files is not writable.");
|
|
$oP->error("<b>Error:</b> the directory where to store temporary setup files is not writable.");
|
|
- $oP->p("The wizard cannot create operate. Please make sure that the directory '<b>".realpath(dirname(FINAL_CONFIG_FILE))."/setup</b>' is writable for the web server.");
|
|
|
|
|
|
+ $oP->p("The wizard cannot create operate. Please make sure that the directory '<b>".realpath(dirname(TMP_CONFIG_FILE))."/setup</b>' is writable for the web server.");
|
|
$oP->output();
|
|
$oP->output();
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|