From 4ac5934eeb774892f79eaad993a2b69cd69c2784 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 Apr 2007 20:04:18 +0000 Subject: Correctly write out doorman users. It is obvious this package was never tested 18 months ago by the original author... --- packages/doormanusers.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages/doormanusers.xml') diff --git a/packages/doormanusers.xml b/packages/doormanusers.xml index e73cd88e..54e83a7e 100644 --- a/packages/doormanusers.xml +++ b/packages/doormanusers.xml @@ -78,11 +78,10 @@ global $config; $fout = fopen("/usr/local/etc/doormand/guestlist","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); - if($config['installedpackages']['doormanusers'] != "") { + if($config['installedpackages']['doormanusers']) foreach($config['installedpackages']['doormanusers']['config'] as $rowhelper) { fwrite($fout, $rowhelper['username'] . "\t" . $rowhelper['password'] . "\n\t" . $rowhelper['ports'] . "\n\t" . $rowhelper['addresses'] . "\n\n"); } - } fclose($fout); restart_service("doorman"); conf_mount_ro(); -- cgit v1.2.3