Removed postrm scripts from debs, they are not working as expected anyway.

This commit is contained in:
Revertron
2021-04-18 17:01:06 +02:00
parent 214ef69927
commit 1997ccc298
-7
View File
@@ -121,13 +121,6 @@ if command -v systemctl >/dev/null; then
systemctl disable alfis || true
fi
EOF
cat > /tmp/$PKGNAME/debian/postrm << EOF
#!/bin/sh
if [ \$2 != upgrade ] && [ -e /etc/alfis.conf ]
then
rm /var/lib/alfis/blockchain.db
fi
EOF
sudo cp alfis /tmp/$PKGNAME/usr/bin/
cp contrib/systemd/*.service /tmp/$PKGNAME/etc/systemd/system/