summarylogtreecommitdiffstats
path: root/taskd.install
blob: bbb3c42abec3e3b8fbf779f1b38227bfa5f887cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pre_install() {
  # add taskd group if it doesn't exist
  getent group taskd &> /dev/null || groupadd --system taskd

  # add taskd user if it doesn't exist
  getent passwd taskd &> /dev/null || \
      useradd --system -m -d /var/lib/taskd -g taskd taskd
}

post_install() {
  echo "Please follow the configuration instructions at
 /usr/lib/taskd/taskd.notes to finish setting up Taskserver."
}

pre_upgrade() {
  pre_install
}

post_upgrade() {
  post_install
}