Mailinglist Archive: yast-commit (725 mails)

< Previous Next >
[yast-commit] <rest-service> master : Do not fail if authorization is already granted
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Wed, 26 Aug 2009 00:13:26 +0200
  • Message-id: <E1MgDKf-0000KZ-HQ@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 3e0888a99fc4e8eafdd54633acb92c17266eb853
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Wed Aug 26 00:13:26 2009 +0200

Do not fail if authorization is already granted
---
.../system/package/yast2-webservice-system.spec | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/system/package/yast2-webservice-system.spec
b/plugins/system/package/yast2-webservice-system.spec
index 25bb247..c6872dd 100644
--- a/plugins/system/package/yast2-webservice-system.spec
+++ b/plugins/system/package/yast2-webservice-system.spec
@@ -56,10 +56,10 @@ rm -rf $RPM_BUILD_ROOT

%post
# granting all permissions for the web user
-polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.shutdown
-polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.shutdown-multiple-sessions
-polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.reboot
-polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.reboot-multiple-sessions
+polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.shutdown ||:
+polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.shutdown-multiple-sessions ||:
+polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.reboot ||:
+polkit-auth --user %{pkg_user} --grant
org.freedesktop.hal.power-management.reboot-multiple-sessions ||:

%postun
# discard all configured permissions for the web user
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages