diff options
author | freaj <freaj@riseup.net> | 2015-03-29 19:44:12 +0200 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-29 19:44:12 +0200 |
commit | 896520ecb98b8c40777b8dc510a051d2b3908328 (patch) | |
tree | 26dad3de7812ca5fe9f4b547abdfba0d27aa9ad0 /pcr/polkit-consolekit/polkit.install | |
parent | 7f22879038d0b08be8110ba6a7c0f8437ef0679c (diff) |
polkit-consolekit: add new package to [pcr]
Diffstat (limited to 'pcr/polkit-consolekit/polkit.install')
-rw-r--r-- | pcr/polkit-consolekit/polkit.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pcr/polkit-consolekit/polkit.install b/pcr/polkit-consolekit/polkit.install new file mode 100644 index 000000000..fbb98919e --- /dev/null +++ b/pcr/polkit-consolekit/polkit.install @@ -0,0 +1,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 +} |