diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-29 04:05:57 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-29 04:05:57 +0000 |
commit | 88f9886de50562f083fa45359821567b0a880ea0 (patch) | |
tree | 9d6e6861bee113342e27578c9024b17a3d4ceb5f /extra/colord/colord.install | |
parent | 84fbb975eaab5e85082b96147a85031f1912646e (diff) |
Tue Apr 29 04:01:38 UTC 2014
Diffstat (limited to 'extra/colord/colord.install')
-rw-r--r-- | extra/colord/colord.install | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extra/colord/colord.install b/extra/colord/colord.install index c25dff2d3..2b20f5edd 100644 --- a/extra/colord/colord.install +++ b/extra/colord/colord.install @@ -1,5 +1,9 @@ post_install() { glib-compile-schemas /usr/share/glib-2.0/schemas + getent group colord >/dev/null || groupadd -g 124 colord + getent passwd colord >/dev/null || useradd -d /var/lib/colord -u 124 -g colord -s /bin/false colord + chown colord:colord /var/lib/colord + chown colord:colord /var/lib/colord/*.db 2>/dev/null || return 0 } post_upgrade() { @@ -7,5 +11,7 @@ post_upgrade() { } post_remove() { - post_install + glib-compile-schemas /usr/share/glib-2.0/schemas + getent passwd colord >/dev/null && userdel colord + getent group colord >/dev/null && groupdel colord } |