From 8848d4ba1644cb4c279605a9d2d696801346664b Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 11 Oct 2009 17:27:23 -0400 Subject: Move write_config() lower in vnstat.inc, as it will make the fs read-only and later writes will fail. --- config/vnstat/vnstat.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/vnstat') 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 -- cgit v1.2.3