aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-11 17:27:23 -0400
committerjim-p <jim@pingle.org>2009-10-11 17:27:23 -0400
commit8848d4ba1644cb4c279605a9d2d696801346664b (patch)
tree8b76b4ed3b5d35c0e6059b54121adeaabcab9f9d /config
parent2880764c58a70fd659db7b816a2ac0f9308d95f5 (diff)
downloadpfsense-packages-8848d4ba1644cb4c279605a9d2d696801346664b.tar.gz
pfsense-packages-8848d4ba1644cb4c279605a9d2d696801346664b.tar.bz2
pfsense-packages-8848d4ba1644cb4c279605a9d2d696801346664b.zip
Move write_config() lower in vnstat.inc, as it will make the fs read-only and later writes will fail.
Diffstat (limited to 'config')
-rw-r--r--config/vnstat/vnstat.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/vnstat/vnstat.inc b/config/vnstat/vnstat.inc
index b5ebc878..90adbfbc 100644
--- a/config/vnstat/vnstat.inc
+++ b/config/vnstat/vnstat.inc
@@ -42,8 +42,6 @@ function vnstat_install_config() {
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/local/bin/vnstat -u";
$config['cron']['item'][] = $cron_item;
- write_config();
- configure_cron();
// get system nic's and create a database for them
$array_of_real_nic_names = array();
$array_of_custom_nic_names = array();
@@ -226,6 +224,8 @@ EOF;
}
fwrite($hf, $config_file);
fclose($hf);
+ write_config();
+ configure_cron();
conf_mount_ro();
}
?> \ No newline at end of file