thinlinc_server: Change role name

This commit is contained in:
Timo Makinen 2022-02-24 23:17:33 +00:00
parent 3836afecca
commit d2b72b2fff
5 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,21 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.color-manager.create-device" ||
action.id == "org.freedesktop.color-manager.create-profile" ||
action.id == "org.freedesktop.color-manager.delete-device" ||
action.id == "org.freedesktop.color-manager.delete-profile" ||
action.id == "org.freedesktop.color-manager.modify-device" ||
action.id == "org.freedesktop.color-manager.modify-profile") {
if (!subject.local) {
return polkit.Result.NO;
}
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.packagekit.system-network-proxy-configure" ||
action.id == "org.freedesktop.packagekit.system-sources-refresh") {
if (!subject.local) {
return polkit.Result.NO;
}
}
});

View file

@ -0,0 +1,22 @@
#!/bin/sh
cat <<EOF > /root/tl-setup.answer
install-pygtk=yes
email-address=adm@foo.sh
setup-selinux=yes
setup-nearest=no
server-type=master
setup-firewall=no
install-python-ldap=no
setup-apparmor=no
missing-answer=ask
install-nfs=no
setup-thinlocal=no
install-sshd=no
tlwebadm-password=$(dd if=/dev/urandom count=1 2> /dev/null | base64 | tail -n 1 | cut -c 1-20)
accept-eula=yes
migrate-conf=old
install-required-libs=yes
EOF
/opt/thinlinc/sbin/tl-setup -a /root/tl-setup.answer