Files
binary-repo/sys/auth/polkit/polkit.sysconf
T
2023-03-16 07:49:39 +00:00

12 lines
442 B
Bash

#!/bin/bash
if [ ! -f /var/lib/ymp/sysconf/polkit/postinstall.done ] ; then
install -d /usr/share/polkit-1/rules.d
install -d /etc/polkit-1/rules.d
chown -R polkitd:polkitd /{etc,usr/share}/polkit-1/rules.d
chmod -R 700 /etc/polkit-1/rules.d
chmod -R 700 /usr/share/polkit-1/rules.d
chmod 4755 /usr/lib/polkit-1/polkit-agent-helper-1
chmod 4755 /usr/bin/pkexec
date > /var/lib/ymp/sysconf/polkit/postinstall.done
fi