From: Dragan Dosen Date: Tue, 19 May 2009 19:31:35 +0000 (+0200) Subject: Ispravke verzije paketa i nacina na koji se koristi getent. X-Git-Tag: v1%2.3.14+2~3 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=5ef4c4d570c11a70b59b33768d63afc37f36d030;p=xinetd-cn.git Ispravke verzije paketa i nacina na koji se koristi getent. --- diff --git a/debian/changelog b/debian/changelog index e5d54ae..eff2c2e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -xinetd-cn (1:2.3.14-3) stable; urgency=low +xinetd-cn (1:2.3.14-3lenny1) stable; urgency=low * Upgrade paketa za Debian lenny. diff --git a/debian/postinst b/debian/postinst index b6ff377..578e38b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -182,22 +182,28 @@ if [ -n "$services_file_list" ]; then service_user="`echo "$service_block" | sed -nr "s/^[[:space:]]*user[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`" if [ -n "$service_user" ]; then - service_user_chk="`getent passwd "$service_user"`" || true - if [ -z "$service_user_chk" ]; then - cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - user '$service_user' does not exist." - service_disable=1 - fi + for service_user_x in $service_user; do + service_user_chk="`getent passwd $service_user_x`" || true + if [ -z "$service_user_chk" ]; then + cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - user '$service_user_x' does not exist." + service_disable=1 + break + fi + done fi # Check service's group service_group="`echo "$service_block" | sed -nr "s/^[[:space:]]*group[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`" if [ -n "$service_group" ]; then - service_group_chk="`getent passwd "$service_group"`" || true - if [ -z "$service_group_chk" ]; then - cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - group '$service_group' does not exist." - service_disable=1 - fi + for service_group_x in $service_user; 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." + service_disable=1 + break + fi + done fi # Check service's binary