diff options
author | Jan Synacek <jsynacek@redhat.com> | 2013-07-25 15:56:31 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2013-07-25 15:56:31 +0200 |
commit | 0635f9b4e340127b5fa4fb57d1f3701fac073285 (patch) | |
tree | ae38db661acdf1ec0b74932161d93a4b35945df1 | |
parent | ed078aa12fa4932bf915886d4c64eae6375d0172 (diff) | |
download | openlmi-providers-0635f9b4e340127b5fa4fb57d1f3701fac073285.tar.gz openlmi-providers-0635f9b4e340127b5fa4fb57d1f3701fac073285.tar.xz openlmi-providers-0635f9b4e340127b5fa4fb57d1f3701fac073285.zip |
account: correctly register profiles in spec, do not hardcode version in skel
-rw-r--r-- | openlmi-providers.spec | 10 | ||||
-rw-r--r-- | src/account/90_LMI_Account_Profile.mof.skel | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec index 9f79668..4e879d5 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -450,6 +450,9 @@ if [ "$1" -gt 1 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %pre -n openlmi-software @@ -538,6 +541,9 @@ if [ "$1" -ge 1 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop register \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %post -n openlmi-software @@ -625,6 +631,9 @@ if [ "$1" -eq 0 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %preun -n openlmi-software @@ -684,6 +693,7 @@ fi %changelog * Thu Jul 25 2013 Jan Synáček <jsynacek@redhat.com> - 0.0.25-9 - Add logicalfile profile registration +- Correctly register account profiles * Thu Jul 25 2013 Radek Novacek <rnovacek@redhat.com> - 0.0.25-8 - Add version to mof/reg registration diff --git a/src/account/90_LMI_Account_Profile.mof.skel b/src/account/90_LMI_Account_Profile.mof.skel index ff0bdee..c918c8f 100644 --- a/src/account/90_LMI_Account_Profile.mof.skel +++ b/src/account/90_LMI_Account_Profile.mof.skel @@ -11,7 +11,7 @@ instance of PG_ProviderProfileCapabilities OtherRegisteredProfile = "OpenLMI-Account"; OtherProfileOrganization = "OpenLMI"; - ProfileVersion = "0.0.1"; + ProfileVersion = "@VERSION@"; RegisteredSubProfiles = { 3025 |