summaryrefslogtreecommitdiff
path: root/social/bitcoin-daemon/bitcoin-daemon.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-28 23:14:32 +0000
committerroot <root@rshg054.dnsready.net>2011-09-28 23:14:32 +0000
commitf8db5d1487e8e0ceeb97a396e357c1540a047ed8 (patch)
tree7ad8dee5bda1fe535c9139770dc7316f9b780818 /social/bitcoin-daemon/bitcoin-daemon.install
parentccb9d72bbf1ee4f7a54113eac76a16b0b5014869 (diff)
Wed Sep 28 23:14:32 UTC 2011
Diffstat (limited to 'social/bitcoin-daemon/bitcoin-daemon.install')
-rw-r--r--social/bitcoin-daemon/bitcoin-daemon.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/social/bitcoin-daemon/bitcoin-daemon.install b/social/bitcoin-daemon/bitcoin-daemon.install
index 2eea98e2c..5b2ffec92 100644
--- a/social/bitcoin-daemon/bitcoin-daemon.install
+++ b/social/bitcoin-daemon/bitcoin-daemon.install
@@ -2,9 +2,11 @@ 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."