]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Do it differently, II
authorPeter Palfrader <peter@palfrader.org>
Tue, 24 May 2011 09:57:36 +0000 (11:57 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 24 May 2011 09:57:36 +0000 (11:57 +0200)
modules/stunnel4/files/etc-init.d-stunnel4

index 5ace7cb4a7d1a0ef65b16158f21dd5995255717c..c4bb5ad6979f1f21c464cd3ff644d0d09dbecae8 100755 (executable)
@@ -23,9 +23,15 @@ DESC="SSL tunnels"
 OPTIONS=""
 ENABLED=0
 
-FILES="/etc/stunnel/*.conf"
-if [ -n "${2-:}" ] && [ -e "/etc/stunnel/$2.conf" ]; then
-       FILES="/etc/stunnel/$2.conf}"
+if [ -n "${2-:}" ]; then
+       if [ -e "/etc/stunnel/$2.conf" ]; then
+               FILES="/etc/stunnel/$2.conf"
+       else
+               echo >&2 "/etc/stunnel/$2.conf does not exist."
+               exit 1
+       fi
+else
+       FILES="/etc/stunnel/*.conf"
 fi
 
 get_pids() {