blob: 5d69a6c99b6ff73fb3fca60adf20e0abe36c2150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
post_install() {
printf "%b\n" "$bitcoin"
}
post_upgrade() {
post_install
}
read -d '' bitcoin <<'EOF'
########################################################################
########################################################################
## ##
## Bitcoin Core ##
## ____________ ##
## ##
## To start bitcoin-core: ##
## ##
## # systemctl start bitcoin ##
## ##
## To communicate with bitcoin-core as a normal user: ##
## ##
## $ mkdir -p ~/.bitcoin ##
## $ cat > ~/.bitcoin/bitcoin.conf <<'EOF' ##
## rpcconnect=127.0.0.1 ##
## rpcport=8332 ##
## rpcuser=bitcoin ##
## rpcpassword=secret ##
## EOF ##
## ##
## $ bitcoin-cli getmininginfo ##
## ##
## Config: /etc/bitcoin/bitcoin.conf ##
## Blockchain: /srv/bitcoin ##
## Documentation: /usr/share/doc/bitcoin ##
## ##
########################################################################
########################################################################
EOF
|