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

index fc17c6df62134e3372a9d0dc9e8da0f6fe1d538a..5ace7cb4a7d1a0ef65b16158f21dd5995255717c 100755 (executable)
@@ -20,10 +20,14 @@ DEFAULTPIDFILE="/var/run/stunnel4.pid"
 DAEMON=/usr/bin/stunnel4
 NAME=stunnel
 DESC="SSL tunnels"
-FILES="${STUNNEL_FILES:-/etc/stunnel/*.conf}"
 OPTIONS=""
 ENABLED=0
 
+FILES="/etc/stunnel/*.conf"
+if [ -n "${2-:}" ] && [ -e "/etc/stunnel/$2.conf" ]; then
+       FILES="/etc/stunnel/$2.conf}"
+fi
+
 get_pids() {
    local file=$1
    if test -f $file; then