From: Peter Palfrader Date: Tue, 24 May 2011 09:57:36 +0000 (+0200) Subject: Do it differently, II X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e1ae7678b540e3aa94b2fcf5ab0d8c121d2c80c3;hp=78d9609794123c96e794ff5201a1aa3e7695ab5a;p=mirror%2Fdsa-puppet.git Do it differently, II --- diff --git a/modules/stunnel4/files/etc-init.d-stunnel4 b/modules/stunnel4/files/etc-init.d-stunnel4 index 5ace7cb4a..c4bb5ad69 100755 --- a/modules/stunnel4/files/etc-init.d-stunnel4 +++ b/modules/stunnel4/files/etc-init.d-stunnel4 @@ -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() {