Added postrm script to debs, to delete blockchain on uninstall.
This commit is contained in:
@@ -113,6 +113,10 @@ if command -v systemctl >/dev/null; then
|
|||||||
systemctl disable alfis || true
|
systemctl disable alfis || true
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
cat > /tmp/$PKGNAME/debian/postrm << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
rm /var/lib/alfis/blockchain.db
|
||||||
|
EOF
|
||||||
|
|
||||||
sudo cp alfis /tmp/$PKGNAME/usr/bin/
|
sudo cp alfis /tmp/$PKGNAME/usr/bin/
|
||||||
cp contrib/systemd/*.service /tmp/$PKGNAME/etc/systemd/system/
|
cp contrib/systemd/*.service /tmp/$PKGNAME/etc/systemd/system/
|
||||||
|
|||||||
Reference in New Issue
Block a user