2015-06-14 02:25:42 +00:00
|
|
|
post_install() {
|
2015-08-20 12:08:10 +00:00
|
|
|
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 /bin/nologin polkitd
|
|
|
|
passwd -l polkitd &>/dev/null
|
2015-10-25 18:43:18 +00:00
|
|
|
chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
|
|
|
|
chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
|
2015-06-14 02:25:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2015-08-20 12:08:10 +00:00
|
|
|
post_install
|
|
|
|
if (( $(vercmp $2 0.113-2) < 0 )); then
|
|
|
|
usermod -aG proc -s /usr/bin/nologin polkitd
|
|
|
|
fi
|
2015-06-14 02:25:42 +00:00
|
|
|
}
|