summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-07-14 16:47:17 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-07-14 16:47:17 +0000
commitcbdf9821cc0c9cd09d27732aba5e1f293faf9921 (patch)
tree293405b508e1574cca29264dd25ec2b0a3d071a2 /etc
parent469dc3c05ad3f1377a9ab6542ff4e0994e98e930 (diff)
downloadpfsense-cbdf9821cc0c9cd09d27732aba5e1f293faf9921.zip
pfsense-cbdf9821cc0c9cd09d27732aba5e1f293faf9921.tar.gz
Bump execution timeout to 15 minutes on upgrades
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 876dae1..aae7113 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -485,6 +485,9 @@ function conf_mount_ro() {
/* convert configuration, if necessary */
function convert_config() {
global $config, $g;
+ $now = date("H:i:s");
+ log_error("Start Configuration upgrade at $now, set execution timeout to 15 minutes");
+ ini_set("max_execution_time", "900");
/* special case upgrades */
/* fix every minute crontab bogons entry */
@@ -1468,6 +1471,9 @@ function convert_config() {
$config['version'] = "4.7";
}
+ $now = date("H:i:s");
+ log_error("Ended Configuration upgrade at $now");
+
// if ($prev_version != $config['version'])
write_config("Upgraded config version level from {$prev_version} to {$config['version']}");
}
OpenPOWER on IntegriCloud