diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-03-21 11:57:00 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-03-21 11:57:00 -0500 |
commit | d504129dd82d1e6b153e498e544a6bd9f30d5ab2 (patch) | |
tree | 4dcdf6f9b235fd9ec69680f2390c6526655ee9ff /pcr/polkit-consolekit/polkit.install | |
parent | db1802bff1f9a0d62436bf0204f994a7e4845267 (diff) | |
download | abslibre-d504129dd82d1e6b153e498e544a6bd9f30d5ab2.tar.gz abslibre-d504129dd82d1e6b153e498e544a6bd9f30d5ab2.tar.bz2 abslibre-d504129dd82d1e6b153e498e544a6bd9f30d5ab2.zip |
polkit-consolekit: re-add package to [pcr]
Diffstat (limited to 'pcr/polkit-consolekit/polkit.install')
-rw-r--r-- | pcr/polkit-consolekit/polkit.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/polkit-consolekit/polkit.install b/pcr/polkit-consolekit/polkit.install new file mode 100644 index 000000000..422db623c --- /dev/null +++ b/pcr/polkit-consolekit/polkit.install @@ -0,0 +1,15 @@ +post_install() { + getent group polkitd || groupadd -g 102 polkitd + getent passwd polkitd || 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 + + if (( $(vercmp $2 0.113-6) < 0 )); then + usermod -aG proc -s /usr/bin/nologin polkitd + chown root:102 /{etc,usr/share}/polkit-1/rules.d + chmod 750 /{etc,usr/share}/polkit-1/rules.d + fi +} |