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

Pablo Fischer pabl0-guest@quantz.debian.org
Thu, 26 Feb 2004 00:13:31 +0100


Author: pabl0-guest
Date: 2004-02-26 00:13:30 +0100 (Thu, 26 Feb 2004)
New Revision: 351

Modified:
   xsp-snapshot/trunk/debian/official/asp.net-examples.prerm
Log:
* Configured to nethostmanager, so we can remove the virtualhost with just one command an keep the format



Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.prerm
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.prerm	2004-02-24 23:33:13 UTC (rev 350)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.prerm	2004-02-25 23:13:30 UTC (rev 351)
@@ -1,15 +1,18 @@
 #!/bin/sh -e
 
-if [ -f /etc/xsp/virtual.conf ]; then
-    tempfile=`/bin/tempfile`
-    sed s/\\/samples:\\/usr\\/share\\/asp.net-demos\\/asp\// /etc/mono-server/virtual.conf > $tempfile
-    cp $tempfile /etc/xsp/virtual.conf
-    rm -f /etc/xsp/virtual.conf
+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 [ -f /etc/mono-server/virtual.conf ]; then
-    tempfile=`/bin/tempfile`
-    sed s/\\/samples:\\/usr\\/share\\/asp.net-demos\\/asp\// /etc/mono-server/virtual.conf > $tempfile
-    cp $tempfile /etc/mono-server/virtual.conf
-    rm -f /etc/mono-server/virtual.conf
+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
+