summaryrefslogtreecommitdiff
path: root/pcr/polkit-elogind/polkit.install
blob: bb5a0c6575122accf835cead37cc0e326d436315 (plain)
1
2
3
4
5
6
7
8
9
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 -G proc -d '/' -s /usr/bin/nologin polkitd
    passwd -l polkitd &>/dev/null
}

post_upgrade() {
    post_install
}