diff options
-rw-r--r-- | etc/inc/config.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index cf26286..5e2cc7b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -750,11 +750,12 @@ function write_config($desc="Unknown", $backup = true) { $config['revision']['time'] = $changetime; config_lock(); - conf_mount_rw(); /* generate configuration XML */ $xmlconfig = dump_xml_config($config, $g['xml_rootobj']); + conf_mount_rw(); + /* write new configuration */ $fd = fopen("{$g['cf_conf_path']}/config.xml", "w"); if (!$fd) |