blob: 0fe454cfac7441e361c4a449a8ce1544653f8bce (
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
|
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
mkdir -p /var/log/taskd
chown taskd:taskd /var/log/taskd
}
post_install() {
echo ">>> Please follow the configuration instructions at"
echo " /usr/lib/taskd/taskd.notes to finish setting up Taskserver."
}
pre_upgrade() {
pre_install
}
post_upgrade() {
post_install
}
|