summarylogtreecommitdiffstats
path: root/bitcoin-core-01-userdel.hook
diff options
context:
space:
mode:
Diffstat (limited to 'bitcoin-core-01-userdel.hook')
-rw-r--r--bitcoin-core-01-userdel.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitcoin-core-01-userdel.hook b/bitcoin-core-01-userdel.hook
new file mode 100644
index 000000000000..bfdd300fb0f0
--- /dev/null
+++ b/bitcoin-core-01-userdel.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Remove
+Type = Package
+Target = bitcoin-core
+
+[Action]
+Description = Removing bitcoin daemon user...
+Depends = shadow
+When = PostTransaction
+Exec = /usr/bin/userdel -rf bitcoin