summaryrefslogtreecommitdiff
path: root/pcr/radicale/radicale.install
blob: 720dc55f17bfb97f68546f65bf8c0137ea7631d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  getent group radicale &>/dev/null || groupadd radicale >/dev/null
  getent passwd radicale &>/dev/null || useradd -r -s /usr/bin/false \
    -g radicale -G radicale,http -d /etc/radicale/ radicale >/dev/null
  chown -R radicale:radicale /etc/radicale/
}
 
post_update() {
  chown -R radicale:radicale /etc/radicale/
}
 
pre_remove() {
  getent passwd radicale &>/dev/null && userdel radicale >/dev/null
  getent group radicale &>/dev/null && groupdel radicale >/dev/null
  true
}