Dodatne ispravke vezano za provjeru ispravnosti konfiguracije. lenny
authorDragan Dosen <bane@nekkar.carnet.hr>
Tue, 19 May 2009 19:48:55 +0000 (21:48 +0200)
committerDragan Dosen <bane@nekkar.carnet.hr>
Tue, 19 May 2009 19:48:55 +0000 (21:48 +0200)
debian/postinst

index 578e38b..7e01fae 100644 (file)
@@ -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