summarylogtreecommitdiffstats
path: root/aursec.install
blob: 3ca62c0a57c9564fb207fdeae885b89b107935f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
}

post_upgrade() {
  post_install $1
}