summarylogtreecommitdiffstats
path: root/bs.install
blob: e13210f6dfe69ea51574a7f9df048fe89c2da262 (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
_bs_user=obelisk
_bs_group=obelisk

post_install() {
  chown -R $_bs_user:$_bs_group /etc/obelisk/bs /var/log/obelisk/bs
  printf "%b\n" "$obelisk"
}

post_upgrade() {
  post_install
}

post_remove() {
  rm -rf /etc/obelisk/bs /var/log/obelisk/bs
}

read -d '' obelisk <<'EOF'
########################################################################
########################################################################
##                                                                    ##
##  Libbitcoin Server                                                 ##
##  _________________                                                 ##
##                                                                    ##
##  To run:                                                           ##
##                                                                    ##
##      systemctl start bs-init # first run only                      ##
##      systemctl start bs                                            ##
##                                                                    ##
##                                                                    ##
##  Config:        /etc/obelisk/bs/bs.cfg                             ##
##  Blockchain:    /srv/obelisk                                       ##
##  Documentation: /usr/share/doc/libbitcoin-server                   ##
##  Logs:          /var/log/obelisk/bs                                ##
##                                                                    ##
########################################################################
########################################################################
EOF