X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=DEBIAN%2FDEBIAN%2Fpreinst;h=66dd4e3a3bf49a59f1091a9d365e39b32ce700cb;hb=61771309437ef49d25e592ea84fc750ec6c2e790;hp=1d39870b72e474aff444dde5b6bf77ada8d1561a;hpb=49064c915322ecd425e738516c4a5ce46516ffeb;p=kivitendo-erp.git 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