We need R/W access to config.xml

Ticket #954
This commit is contained in:
Scott Ullrich 2006-05-05 03:37:23 +00:00
parent 963d012d70
commit 37db27bbdd

View File

@ -71,10 +71,12 @@ if(file_exists("/cf/conf/config.xml")) {
echo "Upgrading m0n0wall configuration to pfSense... ";
$config_contents = str_replace("m0n0wall","pfsense", $config_contents);
if (!config_validate($config_contents))
log_error("ERROR! Could not convert m0n0wall -> pfsense in config.xml");
log_error("ERROR! Could not convert m0n0wall -> pfsense in config.xml");
conf_mount_rw();
$fd = fopen("/cf/conf/config.xml", "w");
fwrite($fd, $config_contents);
fclose($fd);
conf_mount_ro();
echo "done.";
}
}