Added postrm script to debs, to delete blockchain on uninstall.

This commit is contained in:
Revertron
2021-04-10 14:15:59 +02:00
parent 3900790f03
commit b97304ba20
+4
View File
@@ -113,6 +113,10 @@ if command -v systemctl >/dev/null; then
systemctl disable alfis || true
fi
EOF
cat > /tmp/$PKGNAME/debian/postrm << EOF
#!/bin/sh
rm /var/lib/alfis/blockchain.db
EOF
sudo cp alfis /tmp/$PKGNAME/usr/bin/
cp contrib/systemd/*.service /tmp/$PKGNAME/etc/systemd/system/