From d1e07b9fa086c66beede3762f9323113ac177d19 Mon Sep 17 00:00:00 2001 From: idd-guest Date: Tue, 19 Jun 2012 21:20:06 +0000 Subject: [PATCH] Only enable swat in inetd.conf on first install. Closes: #658245 git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@4125 fc4039ab-9d04-0410-8cac-899223bdd6b0 --- debian/changelog | 6 ++++++ debian/swat.postinst | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 62db4e0303..4b9bef75b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +samba (2:3.6.5-8) UNRELEASED; urgency=low + + * Only enable swat in inetd.conf on first install. Closes: #658245 + + -- Ivo De Decker Tue, 19 Jun 2012 23:11:23 +0200 + samba (2:3.6.5-7) unstable; urgency=low * Allow installing smbclient package together with newer versions of diff --git a/debian/swat.postinst b/debian/swat.postinst index c449899291..878ec10c49 100644 --- a/debian/swat.postinst +++ b/debian/swat.postinst @@ -4,8 +4,11 @@ set -e action="$1" oldversion="$2" -# Set up swat -update-inetd --group OTHER --add \ - 'swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat' +if [ -z "$oldversion" ] +then +# Set up swat on first install + update-inetd --group OTHER --add \ + 'swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat' +fi #DEBHELPER# -- 2.34.1