From a8373584dcf91245749f8fe7c6aafaf312ccb3dd Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Tue, 19 May 2009 21:48:55 +0200 Subject: [PATCH] Dodatne ispravke vezano za provjeru ispravnosti konfiguracije. --- debian/postinst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 -- 1.7.10.4