ref: refs/heads/master
commit 426daf0971928102bee41c20cf304a0d2d73f34d
Author: Martin Kudlvasr
Date: Thu Nov 12 17:39:59 2009 +0100
rename /etc/yastws/tools/policyKit-rights.rb to /usr/sbin/grantwebyastrights in all specfiles
---
.../package/yast2-webservice-administrator.spec | 4 ++--
.../package/yast2-webservice-language.spec | 2 +-
.../package/yast2-webservice-mailsettings.spec | 4 ++--
.../network/package/yast2-webservice-network.spec | 4 ++--
.../patches/package/yast2-webservice-patches.spec | 2 +-
.../package/yast2-webservice-registration.spec | 2 +-
.../package/yast2-webservice-security.spec | 2 +-
.../package/yast2-webservice-services.spec | 4 ++--
.../status/package/yast2-webservice-status.spec | 2 +-
plugins/time/package/yast2-webservice-time.spec | 4 ++--
plugins/users/package/yast2-webservice-users.spec | 2 +-
webservice/lib/tasks/checks.rake | 2 +-
12 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/plugins/administrator/package/yast2-webservice-administrator.spec b/plugins/administrator/package/yast2-webservice-administrator.spec
index 5484700..9a67356 100644
--- a/plugins/administrator/package/yast2-webservice-administrator.spec
+++ b/plugins/administrator/package/yast2-webservice-administrator.spec
@@ -75,8 +75,8 @@ rm -rf $RPM_BUILD_ROOT
%post
# granting all permissions for the web user
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
-/etc/yastws/tools/policyKit-rights.rb --user yastws --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user yastws --action grant >& /dev/null || :
%postun
diff --git a/plugins/language/package/yast2-webservice-language.spec b/plugins/language/package/yast2-webservice-language.spec
index c93cfda..1df24aa 100644
--- a/plugins/language/package/yast2-webservice-language.spec
+++ b/plugins/language/package/yast2-webservice-language.spec
@@ -73,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/mail_settings/package/yast2-webservice-mailsettings.spec b/plugins/mail_settings/package/yast2-webservice-mailsettings.spec
index 09d858e..09492f2 100644
--- a/plugins/mail_settings/package/yast2-webservice-mailsettings.spec
+++ b/plugins/mail_settings/package/yast2-webservice-mailsettings.spec
@@ -89,8 +89,8 @@ rm -rf $RPM_BUILD_ROOT
%post
# granting all permissions for the web user
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
-/etc/yastws/tools/policyKit-rights.rb --user yastws --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user yastws --action grant >& /dev/null || :
%postun
diff --git a/plugins/network/package/yast2-webservice-network.spec b/plugins/network/package/yast2-webservice-network.spec
index 310f918..04fb7e0 100644
--- a/plugins/network/package/yast2-webservice-network.spec
+++ b/plugins/network/package/yast2-webservice-network.spec
@@ -73,9 +73,9 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
# and for yastws
-/etc/yastws/tools/policyKit-rights.rb --user %{pkg_user} --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user %{pkg_user} --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/patches/package/yast2-webservice-patches.spec b/plugins/patches/package/yast2-webservice-patches.spec
index a2bd421..538fcc2 100644
--- a/plugins/patches/package/yast2-webservice-patches.spec
+++ b/plugins/patches/package/yast2-webservice-patches.spec
@@ -64,7 +64,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/registration/package/yast2-webservice-registration.spec b/plugins/registration/package/yast2-webservice-registration.spec
index c2198c5..842edc0 100644
--- a/plugins/registration/package/yast2-webservice-registration.spec
+++ b/plugins/registration/package/yast2-webservice-registration.spec
@@ -66,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/securities/package/yast2-webservice-security.spec b/plugins/securities/package/yast2-webservice-security.spec
index 780d601..c2627f9 100644
--- a/plugins/securities/package/yast2-webservice-security.spec
+++ b/plugins/securities/package/yast2-webservice-security.spec
@@ -60,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/services/package/yast2-webservice-services.spec b/plugins/services/package/yast2-webservice-services.spec
index 24f11ad..3af420c 100644
--- a/plugins/services/package/yast2-webservice-services.spec
+++ b/plugins/services/package/yast2-webservice-services.spec
@@ -88,8 +88,8 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
-/etc/yastws/tools/policyKit-rights.rb --user yastws --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user yastws --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/status/package/yast2-webservice-status.spec b/plugins/status/package/yast2-webservice-status.spec
index 1644d96..f4ba47f 100644
--- a/plugins/status/package/yast2-webservice-status.spec
+++ b/plugins/status/package/yast2-webservice-status.spec
@@ -76,7 +76,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
#
# nslookup of static hostnames can result to an error. Due this error collectd
diff --git a/plugins/time/package/yast2-webservice-time.spec b/plugins/time/package/yast2-webservice-time.spec
index 83d90a8..f09f7cd 100644
--- a/plugins/time/package/yast2-webservice-time.spec
+++ b/plugins/time/package/yast2-webservice-time.spec
@@ -66,9 +66,9 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
# XXX not nice to get yastws all permissions, but now not better solution
-/etc/yastws/tools/policyKit-rights.rb --user yastws --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user yastws --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/plugins/users/package/yast2-webservice-users.spec b/plugins/users/package/yast2-webservice-users.spec
index a0cecf7..6231d57 100644
--- a/plugins/users/package/yast2-webservice-users.spec
+++ b/plugins/users/package/yast2-webservice-users.spec
@@ -59,7 +59,7 @@ rm -rf $RPM_BUILD_ROOT
#
# granting all permissions for root
#
-/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null || :
+/usr/sbin/grantwebyastrights --user root --action grant >& /dev/null || :
%files
%defattr(-,root,root)
diff --git a/webservice/lib/tasks/checks.rake b/webservice/lib/tasks/checks.rake
index a74a1de..d0b9b78 100644
--- a/webservice/lib/tasks/checks.rake
+++ b/webservice/lib/tasks/checks.rake
@@ -156,7 +156,7 @@ EOF
end
# now check that all permission in each policy is granted
- hint_message = "\nUse utility script policyKit-rights.rb to grant them all.\nSee http://en.opensuse.org/YaST/Web/Development\nYou can also grant them to the root user and login as root to the YaST web client.\n\n"
+ hint_message = "\nUse utility script grantwebyastrights.rb to grant them all.\nSee http://en.opensuse.org/YaST/Web/Development\nYou can also grant them to the root user and login as root to the YaST web client.\n\n"
Dir.glob(File.join(File.dirname(__FILE__), '../../..', "**/*.policy")).each do |policy|
doc = REXML::Document.new(File.open(policy))
doc.elements.each("/policyconfig/action") do |action|
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org