summarylogtreecommitdiffstats
path: root/colord.install
blob: 2b20f5edde583508ae4ea6badfa78e6074e0a8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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() {
    post_install
}

post_remove() {
    glib-compile-schemas /usr/share/glib-2.0/schemas
    getent passwd colord >/dev/null && userdel colord
    getent group colord >/dev/null && groupdel colord
}