[csw-devel] SF.net SVN: gar:[6746] csw/mgar/pkg/cswclassutils/trunk/files/ CSWcswclassutils.r.cswinetd
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Wed Oct 7 17:28:59 CEST 2009
Revision: 6746
http://gar.svn.sourceforge.net/gar/?rev=6746&view=rev
Author: bdwalton
Date: 2009-10-07 15:28:59 +0000 (Wed, 07 Oct 2009)
Log Message:
-----------
cswclassutils: make the inetd service removal generic (copy/paste error); backup inetd.conf before modifications
Modified Paths:
--------------
csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswinetd
Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswinetd
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswinetd 2009-10-07 14:04:36 UTC (rev 6745)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswinetd 2009-10-07 15:28:59 UTC (rev 6746)
@@ -28,11 +28,12 @@
inetdsvc=`cat $dest`
set -- $inetdsvc
svcname=$1
- echo "Removing $svcname service from inetd.conf"
- /usr/xpg4/bin/sed -e '/# CSWgitosis/{
+ echo "Removing $svcname service from inetd.conf (original: $inetdconf.$PKGINST)"
+ cp -p $inetdconf $inetdconf.$PKGINST
+ /usr/xpg4/bin/sed -e "/# $PKGINST/{
$!N
-/^# CSWgitosis.*\n#git.*$/d
-}' $inetdconf > $inetdconf.$$ && \
+/^# $PKGINST.*\n#$svcname.*$/d
+}" $inetdconf > $inetdconf.$$ && \
mv $inetdconf.$$ $inetdconf && \
chown root:sys $inetdconf && \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list