X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fstunnel4%2Ffiles%2Fetc-init.d-stunnel4;h=17505c4cab5bb357eed490ab9944a978cde47769;hb=cf7bde4c10beb5924f1c9749e3b8f0ab329cb63f;hp=5ace7cb4a7d1a0ef65b16158f21dd5995255717c;hpb=78d9609794123c96e794ff5201a1aa3e7695ab5a;p=mirror%2Fdsa-puppet.git diff --git a/modules/stunnel4/files/etc-init.d-stunnel4 b/modules/stunnel4/files/etc-init.d-stunnel4 index 5ace7cb4a..17505c4ca 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() {