diff options
author | Eirik Oeverby <ltning@anduin.net> | 2010-08-10 20:50:47 +0200 |
---|---|---|
committer | Eirik Oeverby <ltning@anduin.net> | 2010-08-10 20:50:47 +0200 |
commit | cbdb26eceb99df955a21c2ee764e0bf1cee67249 (patch) | |
tree | 2ed7129ef9607336cf1075667b8665629f5d308f /config | |
parent | 8840f0d0a4e99ad80fa192cda1dcc31f7ec3dcbb (diff) | |
download | pfsense-packages-cbdb26eceb99df955a21c2ee764e0bf1cee67249.tar.gz pfsense-packages-cbdb26eceb99df955a21c2ee764e0bf1cee67249.tar.bz2 pfsense-packages-cbdb26eceb99df955a21c2ee764e0bf1cee67249.zip |
Fixed up stunnel package for fbsd8, fixed a bug in certificate creation
Diffstat (limited to 'config')
-rw-r--r-- | config/stunnel/stunnel.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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 +?> |