summarylogtreecommitdiffstats
path: root/aursec.install
blob: 58c14e4d21ff193994ab053c2bcc25334c8a2344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Create the user and group if they don't exist

post_install() {
  if ! getent group aursec >/dev/null; then
    groupadd --system aursec
  fi
  if ! getent passwd aursec >/dev/null; then
    useradd --system -c 'aursec daemon user' -g aursec -d /var/aursec/ -s /bin/bash aursec
  fi

  echo "==> Please run 'aursec-init' and start and enable
       aursec-blockchain.service
       aursec-blockchain-mine.timer
   before using aursec."
}

post_upgrade() {
  post_install $1
}