From 4857cb4af72ce2aa304d6e7742904f73bb84dda8 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Thu, 27 Jan 2011 12:21:09 +0100 Subject: [PATCH] Kleine Fehler --- DEBIAN/DEBIAN/preinst | 11 +++++++++-- scripts/inst_postgres_deb.sh | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/DEBIAN/DEBIAN/preinst b/DEBIAN/DEBIAN/preinst index 1d39870b7..66dd4e3a3 100755 --- a/DEBIAN/DEBIAN/preinst +++ b/DEBIAN/DEBIAN/preinst @@ -1,15 +1,22 @@ #!/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 +) 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` - 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 + else + echo " ! ok !" >> /tmp/lxo-erp.log fi fi diff --git a/scripts/inst_postgres_deb.sh b/scripts/inst_postgres_deb.sh index d5a313832..6dff83247 100755 --- a/scripts/inst_postgres_deb.sh +++ b/scripts/inst_postgres_deb.sh @@ -2,7 +2,7 @@ # e = exit on error set -e # x = xtrace -set -x +#set -x FEHLER="Achtung!! Es hat ein Problem gegeben" ERRCNT=0 @@ -117,7 +117,7 @@ if [ $cnt -eq 0 ]; then 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 -- 2.20.1