2 #Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird
6 echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log
9 if [ "$1" = "upgrade" ]; then
10 echo " ! upgrade !" >> /tmp/lxo-erp.log
11 cnt=`grep -c '\-e /usr/lib/lx-office-erp' /var/lib/dpkg/info/lx-office-erp.postrm`
12 echo " ! $cnt !" >> /tmp/lxo-erp.log
13 if [ $cnt -gt 0 ]; then
14 echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm
15 echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm
16 echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm
17 chmod +x /var/lib/dpkg/info/lx-office-erp.postrm
19 echo " ! ok !" >> /tmp/lxo-erp.log