From cbdb26eceb99df955a21c2ee764e0bf1cee67249 Mon Sep 17 00:00:00 2001 From: Eirik Oeverby Date: Tue, 10 Aug 2010 20:50:47 +0200 Subject: Fixed up stunnel package for fbsd8, fixed a bug in certificate creation --- config/stunnel/stunnel.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/stunnel') diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc index dd312323..571cfb01 100644 --- a/config/stunnel/stunnel.inc +++ b/config/stunnel/stunnel.inc @@ -120,6 +120,7 @@ function stunnel_save($config) { fwrite($fout, "chroot = /var/tmp/stunnel \n"); fwrite($fout, "setuid = stunnel \n"); fwrite($fout, "setgid = stunnel \n"); + if(!is_array($config['installedpackages']['stunnel']['config'])) { $config['installedpackages']['stunnel']['config']=Array(); } foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) { fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n"); if($pkgconfig['certificate']) { @@ -235,4 +236,4 @@ function stunnel_deinstall() { unlink_if_exists("/usr/local/etc/rc.d/stunnel.sh"); } -?> \ No newline at end of file +?> -- cgit v1.2.3