Commit b068f75b authored by Ad Schellevis's avatar Ad Schellevis

remove config_install

parent 2935542e
......@@ -312,32 +312,6 @@ function config_restore($conffile) {
return 0;
}
function config_install($conffile)
{
if (!file_exists($conffile)) {
return 1;
}
if (!config_validate($conffile)) {
return 1;
}
if (file_exists('/var/run/booting')) {
echo gettext("Installing configuration...") . "\n";
} else {
log_error(gettext("Installing configuration ...."));
}
$lockkey = lock('config', LOCK_EX);
copy($conffile, '/conf/config.xml');
disable_security_checks();
unlock($lockkey);
return 0;
}
/*
* Disable security checks for DNS rebind and HTTP referrer until next time
* they pass (or reboot), to aid in preventing accidental lockout when
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment