Do not attempt to touch /needs_package_sync on CDROM platform.

This commit is contained in:
Scott Ullrich 2007-05-03 22:15:48 +00:00
parent 46d5398808
commit 447c8e03a1

View File

@ -154,7 +154,8 @@ if ($_POST) {
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
/* this will be picked up by /index.php */
conf_mount_rw();
touch("/needs_package_sync");
if($g['platform'] <> "cdrom")
touch("/needs_package_sync");
$reboot_needed = true;
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
/* remove cache, we will force a config reboot */