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
|
||||
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/
|
||||
|
||||
Reference in New Issue
Block a user