mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
19 lines
482 B
Plaintext
19 lines
482 B
Plaintext
|
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
|
||
|
}
|