summaryrefslogtreecommitdiff
path: root/pcr/polkit-consolekit/polkit.install
blob: fbb98919ed253b80a652b48fc5742b7697c88d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
       getent group polkitd >/dev/null || groupadd -g 102 polkitd
       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
       passwd -l polkitd &>/dev/null
}

post_upgrade() {
       post_install
}

post_remove() {
       if getent passwd polkitd >/dev/null; then
               userdel polkitd
       fi
       if getent group polkitd >/dev/null; then
               groupdel polkitd
       fi
}