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

Pablo Fischer pabl0-guest@quantz.debian.org
Tue, 24 Feb 2004 23:49:10 +0100


Author: pabl0-guest
Date: 2004-02-24 23:49:10 +0100 (Tue, 24 Feb 2004)
New Revision: 349

Modified:
   xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst
Log:
* Updated, so asp.net examples can be added a VirtualHost with 
  the nethostmanager utility (until Gonzalo writes a new app to manage the .config file)
  


Modified: xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst
===================================================================
--- xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst	2004-02-24 19:50:05 UTC (rev 348)
+++ xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst	2004-02-24 22:49:10 UTC (rev 349)
@@ -1,17 +1,17 @@
 #!/bin/sh -e
 
 if [ -x /usr/bin/xsp.exe -a -d /etc/xsp-snapshot ]; then
-    #We already have that line?
-    wehaveit=`grep -x '/samples:/usr/share/asp.net-demos/asx' /etc/xsp/virtual.conf  | wc -l`
-    if [ $wehaveit = "0" ]; then
-	echo "Updating Root Servers..."
-	echo "/samples:/usr/share/asp.net-demos/asp" >> /etc/xsp-snapshot/virtual.conf
-    fi
+    #Add the host
+    echo "Updating Root Servers..."
+    nethostmanager add --config-file=/etc/xsp-snapshot/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-snapshot ]; then
-    wehaveit=`grep -x '/samples:/usr/share/asp.net-demos/asx' /etc/xsp/virtual.conf  | wc -l`
-
+    #Add the host                                                                                               
     echo "Updating Root Servers..."
-    echo "/samples:/usr/share/asp.net-demos/asp" >> /etc/mono-server-snapshot/virtual.conf
+    nethostmanager add --config-file=/etc/mono-server-snapshot/virtual.conf \
+        --host=/usr/share/asp.net-demos/asp \
+	--alias=/samples
 fi