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

Pablo Fischer pabl0-guest@quantz.debian.org
Wed, 25 Feb 2004 00:33:14 +0100


Author: pabl0-guest
Date: 2004-02-25 00:33:13 +0100 (Wed, 25 Feb 2004)
New Revision: 350

Modified:
   xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst
   xsp-snapshot/trunk/debian/asp.net-examples-snapshot.prerm
Log:
* Postinst: 
   + Changed the path where xsp.exe or mod-mono-server.exe should be, remember that we are 
     following the MonoConventions
* Prerm:
   + Updated, we are going to use nethostmanager to manage the virtualhost
   + I also changed the directory where xsp.exe and mod-mono-serve.exe should be 


Modified: xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst
===================================================================
--- xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst	2004-02-24 22:49:10 UTC (rev 349)
+++ xsp-snapshot/trunk/debian/asp.net-examples-snapshot.postinst	2004-02-24 23:33:13 UTC (rev 350)
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-if [ -x /usr/bin/xsp.exe -a -d /etc/xsp-snapshot ]; then
+if [ -x /usr/share/dotnet/bin/xsp.exe -a -d /etc/xsp-snapshot ]; then
     #Add the host
     echo "Updating Root Servers..."
     nethostmanager add --config-file=/etc/xsp-snapshot/virtual.conf \
@@ -8,8 +8,8 @@
 	--alias=/samples
 fi
 
-if [ -x /usr/bin/mod-mono-server.exe -a -d /etc/mono-server-snapshot ]; then
-    #Add the host                                                                                               
+if [ -x /usr/share/dotnet/bin/mod-mono-server.exe -a -d /etc/mono-server-snapshot ]; then
+    #Add the host
     echo "Updating Root Servers..."
     nethostmanager add --config-file=/etc/mono-server-snapshot/virtual.conf \
         --host=/usr/share/asp.net-demos/asp \

Modified: xsp-snapshot/trunk/debian/asp.net-examples-snapshot.prerm
===================================================================
--- xsp-snapshot/trunk/debian/asp.net-examples-snapshot.prerm	2004-02-24 22:49:10 UTC (rev 349)
+++ xsp-snapshot/trunk/debian/asp.net-examples-snapshot.prerm	2004-02-24 23:33:13 UTC (rev 350)
@@ -1,15 +1,17 @@
 #!/bin/sh -e
 
-if [ -f /etc/xsp-snapshot/virtual.conf ]; then
-    tempfile=`/bin/tempfile`
-    sed s/\\/samples:\\/usr\\/share\\/asp.net-demos\\/asp\// /etc/xsp-snapshot/virtual.conf > $tempfile
-    cp $tempfile /etc/xsp-snapshot/virtual.conf
-    rm -f /etc/xsp-snapshot/virtual.conf
+if [ -x /usr/share/dotnet/bin/bin/xsp.exe -a -d /etc/xsp-snapshot ]; then
+    #Add the host
+    echo "Updating Root Servers..."
+    nethostmanager del --config-file=/etc/xsp-snapshot/virtual.conf \
+	--host=/usr/share/asp.net-demos/asp \
+	--alias=/samples
 fi
 
-if [ -f /etc/mono-server-snapshot/virtual.conf ]; then
-    tempfile=`/bin/tempfile`
-    sed s/\\/samples:\\/usr\\/share\\/asp.net-demos\\/asp\// /etc/xsp-snapshot/virtual.conf > $tempfile
-    cp $tempfile /etc/mono-server-snapshot/virtual.conf
-    rm -f /etc/mono-server-snapshot/virtual.conf
+if [ -x /usr/share/dotnet/bin/mod-mono-server.exe -a -d /etc/mono-server-snapshot ]; then
+    #Add the host
+    echo "Updating Root Servers..."
+    nethostmanager del --config-file=/etc/mono-server-snapshot/virtual.conf \
+        --host=/usr/share/asp.net-demos/asp \
+	--alias=/samples
 fi