Give the _bitcoind user the correct home directory.

Previous versions of the package give _bitcoind a nonexistent home
directory, causing errors when using the rc script in certain situations.

This can't be fixed by updating the package alone.
N.B.: if you've EVER installed bitcoin, wait for the package mirrors to
update with bitcoin-0.16.2p1, and then run the following:

# pkg_delete bitcoin
# userdel _bitcoind

After doing so, you can safely re-add the package.

noticed by tb@
This commit is contained in:
bentley 2018-09-10 11:11:29 +00:00
parent 5eeb4fb9a6
commit d9e1ed70f3
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.4 2018/09/04 12:46:16 espie Exp $
# $OpenBSD: Makefile,v 1.5 2018/09/10 11:11:29 bentley Exp $
COMMENT = P2P payment system
GH_ACCOUNT = bitcoin
GH_PROJECT = bitcoin
GH_TAGNAME = v0.16.2
REVISION = 0
REVISION = 1
SHARED_LIBS += bitcoinconsensus 0.0 # 0.0
SHARED_LIBS += secp256k1 0.0 # 0.0

View File

@ -1,6 +1,6 @@
@comment $OpenBSD: PLIST,v 1.2 2018/09/04 12:46:16 espie Exp $
@comment $OpenBSD: PLIST,v 1.3 2018/09/10 11:11:29 bentley Exp $
@newgroup _bitcoind:813
@newuser _bitcoind:813:813:daemon:Bitcoind Account:${VARBASE}/empty:/sbin/nologin
@newuser _bitcoind:813:813:daemon:Bitcoind Account:/var/empty:/sbin/nologin
@rcscript ${RCDIR}/bitcoind
@mode 750
@owner _bitcoind