Only enable swat in inetd.conf on first install. Closes: #658245
authoridd-guest <idd-guest@alioth.debian.org>
Tue, 19 Jun 2012 21:20:06 +0000 (21:20 +0000)
committeridd-guest <idd-guest@alioth.debian.org>
Tue, 19 Jun 2012 21:20:06 +0000 (21:20 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@4125 fc4039ab-9d04-0410-8cac-899223bdd6b0

debian/changelog
debian/swat.postinst

index 62db4e0303ed8c457111d8f1292b5b46656d490c..4b9bef75b30bb1d5e2ebee33605348475cbf0ebb 100644 (file)
@@ -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 <ivo.dedecker@ugent.be>  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
index c449899291da418fb94bebc9e9a241cc3ba9e08a..878ec10c49bfd59374c39db7f7180e6ab65b3d3f 100644 (file)
@@ -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#