diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-07 16:53:28 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-07 16:53:28 -0500 |
commit | dec66742c02103fb8060b7c80c1ecf54319440ec (patch) | |
tree | da1b32ebf1c59ac1ff0b9bc71ce8bf0cfe0dae74 /pcr/radicale/radicale.install | |
parent | dd2f6e7973a8093bf0b464aa486bf3b00134e65f (diff) |
radicale-0.10-1: updating version
Diffstat (limited to 'pcr/radicale/radicale.install')
-rw-r--r-- | pcr/radicale/radicale.install | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pcr/radicale/radicale.install b/pcr/radicale/radicale.install index 2bd33ed49..720dc55f1 100644 --- a/pcr/radicale/radicale.install +++ b/pcr/radicale/radicale.install @@ -1,10 +1,16 @@ post_install() { - useradd --create-home \ - --home-dir /srv/cal \ - --user-group \ - --system \ - --comment "Radicale" \ - --skel /dev/null \ - --shell /usr/bin/nologin \ - cal + 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 } |