mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
inc: remove stale and inconsistent `use_mfs_tmpvar' code
This commit is contained in:
parent
1ad20825d4
commit
dc6de4ae87
@ -75,10 +75,6 @@ function restore_rrd()
|
||||
unset($output);
|
||||
@unlink($xml_file);
|
||||
}
|
||||
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
|
||||
if (!isset($config['system']['use_mfs_tmpvar'])) {
|
||||
@unlink('/conf/rrd.tgz');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -386,10 +386,6 @@ function services_dhcpdv4_configure()
|
||||
log_error(sprintf(gettext('DHCP leases restore failed exited with %1$s, the error is: %2$s%3$s'), $dhcpreturn, $dhcprestore, "\n"));
|
||||
}
|
||||
}
|
||||
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
|
||||
if (!isset($config['system']['use_mfs_tmpvar'])) {
|
||||
@unlink('/conf/dhcpleases.tgz');
|
||||
}
|
||||
}
|
||||
|
||||
$syscfg = $config['system'];
|
||||
@ -1006,10 +1002,6 @@ function services_dhcpdv6_configure($blacklist = array())
|
||||
|
||||
}
|
||||
}
|
||||
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
|
||||
if (isset($config['system']['use_mfs_tmpvar'])) {
|
||||
@unlink('/conf/dhcp6leases.tgz');
|
||||
}
|
||||
}
|
||||
|
||||
$syscfg = $config['system'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user