caudium-commits AT caudium.net
Caudium CVS Commits list

CVS: caudium/debian postinst,1.38.2.1,1.38.2.2


chronological Thread 
  • From: "Marek Habersack" <grendel AT cvs.caudiumforge.net>
  • To: caudium-commits AT caudium.net
  • Subject: CVS: caudium/debian postinst,1.38.2.1,1.38.2.2
  • Date: Fri, 22 Apr 2005 01:12:05 +0000

Update of /cvs/caudium/caudium/debian
In directory cvs.caudiumforge.net:/tmp/cvs-serv83245

Modified Files:
      Tag: stable_1_4
        postinst 
Log Message:
some more stuff

Index: postinst
===================================================================
RCS file: /cvs/caudium/caudium/debian/postinst,v
retrieving revision 1.38.2.1
retrieving revision 1.38.2.2
diff -u -r1.38.2.1 -r1.38.2.2
--- postinst    21 Apr 2005 23:32:37 -0000      1.38.2.1
+++ postinst    22 Apr 2005 01:12:02 -0000      1.38.2.2
@@ -1,7 +1,7 @@
 #! /bin/sh
 # postinst script for caudium
 # 
-# $Id: postinst,v 1.38.2.1 2005/04/21 23:32:37 grendel Exp $
+# $Id: postinst,v 1.38.2.2 2005/04/22 01:12:02 grendel Exp $
 #
 # see: dh_installdeb(1)
 EXTVER=
@@ -73,6 +73,21 @@
      rm /var/state/caudium${EXTVER}/virgin.install
     fi
     
+    if head -1 /etc/caudium${EXTVER}/servers/Global_Variables|grep "^6.*Do 
not remove" > /dev/null 2>&1; then
+      # Old caudium format, make sure to DISABLE the watchdog
+      sed -r -e "s#(<region name='Variables'>)#\1<var 
name='watchdog_enable'><int>0</int></var>#" < \
+        /etc/caudium${EXTVER}/servers/Global_Variables > \
+       /etc/caudium${EXTVER}/servers/Global_Variables.new
+       
+       if [ -f /etc/caudium${EXTVER}/servers/Global_Variables.new ]; then
+         if `ls -s /etc/caudium${EXTVER}/servers/Global_Variables.new | cut 
-d ' ' -f 1` -gt 0 ]; then
+           mv /etc/caudium${EXTVER}/servers/Global_Variables.new \
+              /etc/caudium${EXTVER}/servers/Global_Variables
+           chown www-data.www-data 
/etc/caudium${EXTVER}/servers/Global_Variables
+           chmod 660 /etc/caudium${EXTVER}/servers/Global_Variables
+         fi
+       fi
+    fi
     db_get caudium${EXTVER}/start_options
     START_OPTIONS=
 



  • CVS: caudium/debian postinst,1.38.2.1,1.38.2.2, Marek Habersack

Archive powered by MhonArc 2.6.10.

§