[Debian-ha-commits] [csync2] 01/02: Fix postinst error when inetd.conf is missing

Valentin Vidic vvidic-guest at moszumanska.debian.org
Fri Jun 10 14:03:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository csync2.

commit 85a2c3af43115d31a01d59d6e62c03f71923f151
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Fri Jun 10 15:47:12 2016 +0200

    Fix postinst error when inetd.conf is missing
    
    For example when xinetd provides inet-superserver.
---
 debian/postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/postinst b/debian/postinst
index 08d080f..69d63a9 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -20,7 +20,7 @@ set -e
 case "$1" in
     configure)
 
-    if ! grep -q "^csync2" /etc/inetd.conf ; then
+    if ! grep -q -s "^csync2" /etc/inetd.conf ; then
 	update-inetd --remove '^csync2'
 	update-inetd --group OTHER --add \
                      'csync2\t\tstream\ttcp\tnowait\troot\t/usr/sbin/csync2\tcsync2 -i'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/csync2.git



More information about the Debian-HA-Commits mailing list