[Pkg-mono-svn-commits] rev 355 - xsp-snapshot/trunk/debian/official

Pablo Fischer pabl0-guest@quantz.debian.org
Thu, 26 Feb 2004 01:14:53 +0100


Author: pabl0-guest
Date: 2004-02-26 01:14:53 +0100 (Thu, 26 Feb 2004)
New Revision: 355

Modified:
   xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
   xsp-snapshot/trunk/debian/official/asp.net-examples.prerm
Log:
* asp.net-examples.postinst:
 + Removed the last scripts to manage the VirtualHosts
 + Now, we are using nethostmanager to manage the VirtualHosts
* asp.net-examples.prerm:
 + I was using 'add', and I should be using 'del' (cause I'm preremoving)



Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.postinst	2004-02-26 00:11:04 UTC (rev 354)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.postinst	2004-02-26 00:14:53 UTC (rev 355)
@@ -1,18 +1,17 @@
 #!/bin/sh -e
 
-if [ -x /usr/bin/xsp.exe -a -d /etc/xsp ]; then
-    wehaveit=`grep -x '/samples:/usr/share/asp.net-demos/asp' /etc/xsp/virtual.conf  | wc -l`
-    #We don't have already the virtual host?
-    if [ $wehaveit = "0" ]; then
-	echo "Updating Root Servers..."
-	echo "/samples:/usr/share/asp.net-demos/asp" >> /etc/xsp/virtual.conf
-    fi
+if [ -x /usr/share/dotnet/bin/xsp.exe -a -d /etc/xsp ]; then
+    #Add the host
+    echo "Updating Root Servers..."
+    nethostmanager add --config-file=/etc/xsp/virtual.conf \
+	--host=/usr/share/asp.net-demos/asp \
+	--alias=/samples
 fi
 
-if [ -x /usr/bin/mod-mono-server.exe -a -d /etc/mono-server ]; then
-    wehaveit=`grep -x '/samples:/usr/share/asp.net-demos/asp' /etc/mono-server/virtual.conf  | wc -l`
-    if [ $wehaveit = "0" ]; then
-	echo "Updating Root Servers..."
-	echo "/samples:/usr/share/asp.net-demos/asp" >> /etc/mono-server/virtual.conf
-    fi
+if [ -x /usr/share/dotnet/bin/mod-mono-server.exe -a -d /etc/mono-server ]; then
+    #Add the host
+    echo "Updating Root Servers..."
+    nethostmanager add --config-file=/etc/mono-server/virtual.conf \
+        --host=/usr/share/asp.net-demos/asp \
+	--alias=/samples
 fi

Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.prerm
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.prerm	2004-02-26 00:11:04 UTC (rev 354)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.prerm	2004-02-26 00:14:53 UTC (rev 355)
@@ -3,7 +3,7 @@
 if [ -x /usr/share/dotnet/bin/xsp.exe -a -d /etc/xsp ]; then
     #Add the host
     echo "Updating Root Servers..."
-    nethostmanager add --config-file=/etc/xsp/virtual.conf \
+    nethostmanager del --config-file=/etc/xsp/virtual.conf \
 	--host=/usr/share/asp.net-demos/asp \
 	--alias=/samples
 fi
@@ -11,7 +11,7 @@
 if [ -x /usr/share/dotnet/bin/mod-mono-server.exe -a -d /etc/mono-server ]; then
     #Add the host
     echo "Updating Root Servers..."
-    nethostmanager add --config-file=/etc/mono-server/virtual.conf \
+    nethostmanager del --config-file=/etc/mono-server/virtual.conf \
         --host=/usr/share/asp.net-demos/asp \
 	--alias=/samples
 fi