summaryrefslogtreecommitdiff
path: root/social/bitcoin-daemon/bitcoin-daemon.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
commit462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch)
tree11d4d3f054aae9ffd869adc634054f64a16d83b8 /social/bitcoin-daemon/bitcoin-daemon.install
parent748e32a3a886569b58a27003e85b76be5746153d (diff)
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'social/bitcoin-daemon/bitcoin-daemon.install')
-rw-r--r--social/bitcoin-daemon/bitcoin-daemon.install20
1 files changed, 0 insertions, 20 deletions
diff --git a/social/bitcoin-daemon/bitcoin-daemon.install b/social/bitcoin-daemon/bitcoin-daemon.install
deleted file mode 100644
index 5b2ffec92..000000000
--- a/social/bitcoin-daemon/bitcoin-daemon.install
+++ /dev/null
@@ -1,20 +0,0 @@
-post_install() {
- echo "==> Creating the bitcoin user…"
- groupadd -g 8333 bitcoin
- useradd -d /var/lib/bitcoin-daemon -g 8333 -u 8333 -s /bin/false -N bitcoin
-
- pw="$RANDOM$RANDOM$RANDOM"
- echo "==> Setting the default RPC password to $pw"
- echo "rpcpassword=$pw" >> /var/lib/bitcoin-daemon/bitcoin.conf
-
- chown 8333:8333 /var/lib/bitcoin-daemon/bitcoin.conf
- chmod 400 /var/lib/bitcoin-daemon/bitcoin.conf
- echo "==> You can add bitcoind to your DAEMONS array in rc.conf."
-}
-
-post_remove() {
- echo "==> Deleting the bitcoin user…"
- groupdel bitcoin
- userdel bitcoin
- echo "==> Your configuration file and wallet is still in /opt/bitcoin-daemon."
-}