ispravke u postrm
[ocsinventory-agent-cn.git] / debian / preinst
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = install -o "$1" = upgrade ]; then
6   dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
7     --divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm.divert \
8     /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm
9   dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
10     --divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm.divert \
11     /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm
12 fi
13
14 #DEBHELPER#