From b97304ba20b3ce3b9aff5925027c8d15e1f09d50 Mon Sep 17 00:00:00 2001 From: Revertron Date: Sat, 10 Apr 2021 14:15:59 +0200 Subject: [PATCH] Added postrm script to debs, to delete blockchain on uninstall. --- contrib/deb/generate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/deb/generate.sh b/contrib/deb/generate.sh index 6be2686..3e59389 100755 --- a/contrib/deb/generate.sh +++ b/contrib/deb/generate.sh @@ -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/