From: Dragan Dosen Date: Tue, 19 May 2009 19:48:55 +0000 (+0200) Subject: Dodatne ispravke vezano za provjeru ispravnosti konfiguracije. X-Git-Tag: v1%2.3.14+2~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=refs%2Fheads%2Flenny;p=xinetd-cn.git Dodatne ispravke vezano za provjeru ispravnosti konfiguracije. --- diff --git a/debian/postinst b/debian/postinst index 578e38b..7e01fae 100644 --- a/debian/postinst +++ b/debian/postinst @@ -196,7 +196,7 @@ if [ -n "$services_file_list" ]; then service_group="`echo "$service_block" | sed -nr "s/^[[:space:]]*group[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`" if [ -n "$service_group" ]; then - for service_group_x in $service_user; do + for service_group_x in $service_group; do service_group_chk="`getent passwd $service_group_x`" || true if [ -z "$service_group_chk" ]; then cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - group '$service_group_x' does not exist." @@ -208,9 +208,15 @@ if [ -n "$services_file_list" ]; then # Check service's binary service_server="`echo "$service_block" | sed -nr "s/^[[:space:]]*server[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`" - if [ -n "$service_server" ] && [ ! -x "$service_server" ]; then - cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - server '$service_server' does not exist." - service_disable=1 + if [ -n "$service_server" ]; then + + for service_server_x in $service_server; do + if [ ! -x "$service_server_x" ]; then + cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - server '$service_server_x' does not exist." + service_disable=1 + break + fi + done fi if [ $service_disable -eq 1 ]; then