]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Kleine Fehler
authorHolger Lindemann <hli@lenny.hoch.ul>
Thu, 27 Jan 2011 11:21:09 +0000 (12:21 +0100)
committerHolger Lindemann <hli@lenny.hoch.ul>
Thu, 27 Jan 2011 11:21:09 +0000 (12:21 +0100)
DEBIAN/DEBIAN/preinst
scripts/inst_postgres_deb.sh

index 1d39870b72e474aff444dde5b6bf77ada8d1561a..66dd4e3a3bf49a59f1091a9d365e39b32ce700cb 100755 (executable)
@@ -1,15 +1,22 @@
 #!/bin/sh
 #Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird
 #!/bin/sh
 #Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird
-set -e
+#set -x
+
+(
 echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log
 echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log
+)
 
 if [ "$1" = "upgrade" ]; then
 
 if [ "$1" = "upgrade" ]; then
+    echo " ! upgrade !" >> /tmp/lxo-erp.log
     cnt=`grep -c '\-e /usr/lib/lx-office-erp' /var/lib/dpkg/info/lx-office-erp.postrm`
     cnt=`grep -c '\-e /usr/lib/lx-office-erp' /var/lib/dpkg/info/lx-office-erp.postrm`
-    if ! [ $cnt == 0 ]; then
+    echo " ! $cnt !" >> /tmp/lxo-erp.log
+    if [ $cnt -gt 0 ]; then
         echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm
         echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm
         echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm
         chmod +x /var/lib/dpkg/info/lx-office-erp.postrm
         echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm
         echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm
         echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm
         chmod +x /var/lib/dpkg/info/lx-office-erp.postrm
+    else
+        echo " ! ok !" >> /tmp/lxo-erp.log
     fi
 fi
 
     fi
 fi
 
index d5a31383260e764cc573f35b5ca611a6a6a48110..6dff832477e403596f775e9c404faac94a4cc284 100755 (executable)
@@ -2,7 +2,7 @@
 # e = exit on error
 set -e
 # x = xtrace
 # e = exit on error
 set -e
 # x = xtrace
-set -x
+#set -x
 
 FEHLER="Achtung!! Es hat ein Problem gegeben"
 ERRCNT=0
 
 FEHLER="Achtung!! Es hat ein Problem gegeben"
 ERRCNT=0
@@ -117,7 +117,7 @@ if [ $cnt -eq 0 ]; then
 fi
 
  
 fi
 
  
-tmp=`ls -r1 /etc/init.d/postgres*  | head -1 -`
+PGSQL=`ls -r1 /etc/init.d/postgres*  | head -1 -`
 
 #writeln 18 1 Datenbank neu starten
 $PGSQL reload
 
 #writeln 18 1 Datenbank neu starten
 $PGSQL reload