[Pkg-mono-svn-commits] rev 431 - xsp-snapshot/trunk/debian/official
Pablo Fischer
pabl0-guest@haydn.debian.org
Mon, 15 Mar 2004 19:50:02 -0700
Author: pabl0-guest
Date: 2004-03-15 19:49:59 -0700 (Mon, 15 Mar 2004)
New Revision: 431
Modified:
xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
xsp-snapshot/trunk/debian/official/mono-server.postinst
xsp-snapshot/trunk/debian/official/mono-xsp.postinst
Log:
* asp.net-examples.postinst:
+ Added a rm -Rf to remove the temp file after each sed
* mono-server.postinst and mono-xsp.postinst
+ Added a rm -Rf to remove the temp file after each sed
+ Commented the start process of mono-server, we don't need it,
we should start mono-server from mod-mono.
Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.postinst 2004-03-16 02:45:35 UTC (rev 430)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.postinst 2004-03-16 02:49:59 UTC (rev 431)
@@ -14,7 +14,7 @@
xsp_pid=`cat /var/run/mono-xsp`
xsp_ps=`ps -p $xsp_pid | wc -l`
# Are there any process running by that pid?
- if [ $xsp_ps != "1" ]; then
+ if [ "$xsp_ps" != "1" ]; then
/etc/init.d/mono-xsp restart
fi
fi
@@ -27,7 +27,7 @@
monoserver_pid=`cat /var/run/mono-server`
monoserver_ps=`ps -p $monoserver_pid | wc -l`
# Are there any process running by that pid?
- if [ $xsp_ps != "1" ]; then
+ if [ "$xsp_ps" != "1" ]; then
/etc/init.d/mono-server restart
fi
fi
Modified: xsp-snapshot/trunk/debian/official/mono-server.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-server.postinst 2004-03-16 02:45:35 UTC (rev 430)
+++ xsp-snapshot/trunk/debian/official/mono-server.postinst 2004-03-16 02:49:59 UTC (rev 431)
@@ -11,13 +11,12 @@
activate_monoserver() {
sed s/start_boot=false/start_boot=true/g $modmono_default > $tempfile
cp -f $tempfile $modmono_default
- rm -Rf $tempfile
+
}
deactivate_monoserver() {
sed s/start_boot=true/start_boot=false/g $modmono_default > $tempfile
cp -f $tempfile $modmono_default
- rm -Rf $tempfile
}
@@ -29,6 +28,11 @@
else
deactivate_monoserver
fi
+ mono-server-update.conf
+
+# if [ "$RET" = "true" ]; then
+# /etc/init.d/mono-server start
+# fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
Modified: xsp-snapshot/trunk/debian/official/mono-xsp.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp.postinst 2004-03-16 02:45:35 UTC (rev 430)
+++ xsp-snapshot/trunk/debian/official/mono-xsp.postinst 2004-03-16 02:49:59 UTC (rev 431)
@@ -12,6 +12,7 @@
sed s/start_boot=false/start_boot=true/g $xsp_default > $tempfile
cp -f $tempfile $xsp_default
rm -Rf $tempfile
+
}
deactivate_xsp() {
@@ -52,6 +53,11 @@
enable_8080
echo "XSP is going to use the port 8080 (default)"
fi
+
+ mono-xsp-update.conf
+# if [ "$RET" = "true" ]; then
+# /etc/init.d/mono-xsp start
+# fi
;;
abort-upgrade|abort-remove|abort-deconfigure)