aboutsummaryrefslogtreecommitdiff
path: root/contrib/debian/bitcoind.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/debian/bitcoind.postinst')
-rw-r--r--contrib/debian/bitcoind.postinst27
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/debian/bitcoind.postinst b/contrib/debian/bitcoind.postinst
deleted file mode 100644
index e9884f3e36..0000000000
--- a/contrib/debian/bitcoind.postinst
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-# setup bitcoin account, homedir etc
-
-set -e
-
-BCUSER="bitcoin"
-BCHOME="/var/lib/bitcoin"
-
-if [ "$1" = "configure" ]; then
-
- # Add bitcoin user/group - this will gracefully abort if the user already exists.
- # A homedir is never created.
- adduser --system --home "${BCHOME}" --no-create-home --group "${BCUSER}"
-
- # If the homedir does not already exist, create it with proper
- # ownership and permissions.
- if [ ! -d "${BCHOME}" ]; then
- mkdir -m 0750 -p "${BCHOME}"
- chown "${BCUSER}:${BCUSER}" "${BCHOME}"
- fi
-
-fi
-
-#DEBHELPER#
-
-exit 0