summarylogtreecommitdiffstats
path: root/aursec.install
blob: 86fd1025cfc51532409007db0a50778e7a29c769 (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-blockhain-mine.timer
   before using aursync."
}

post_upgrade() {
  post_install $1
}