mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
21 lines
584 B
Text
21 lines
584 B
Text
|
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
|
||
|
chown 102 "$pkgdir/etc/polkit-1/rules.d"
|
||
|
chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|