Skip to content

Commit

Permalink
Merge pull request #176 from kbrock/sample_cable
Browse files Browse the repository at this point in the history
Use standard rpm semantics for cable.yml sample file
  • Loading branch information
bdunne authored Aug 18, 2021
2 parents 1d172a5 + 7b66191 commit 1dca31f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rpm_spec/manageiq.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ cd %{_builddir}
%{__mv} %{buildroot}%{app_root}/public/ui/service/webpack_modules_manifest.json %{buildroot}%{manifest_root}/webpack_modules_manifest_service_ui.json
%{__mv} %{buildroot}%{app_root}/public/ui/service/webpack_packages_manifest.json %{buildroot}%{manifest_root}/webpack_packages_manifest_service_ui.json

#sample configuration files
%{__mv} %{buildroot}%{app_root}/config/cable.yml.sample %{buildroot}%{app_root}/config/cable.yml

## from appliance
#symlink some executables
%{__mkdir} -p %{buildroot}/%{_bindir}
Expand Down
3 changes: 1 addition & 2 deletions rpm_spec/subpackages/manageiq-core
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ do
done

%post core
%{__cp} -f %{app_root}/config/cable.yml.sample %{app_root}/config/cable.yml
# These files are not owned by the rpm.
# For upgrades, ensure they have the correct group privs
# so root and manageiq users can read them.
Expand All @@ -49,12 +48,12 @@ done
%files core
%defattr(-,root,root,-)
%{app_root}
%config(noreplace) %{app_root}/certs
%attr(-,manageiq,manageiq) %{app_root}/certs
%attr(-,manageiq,manageiq) %{app_root}/config
%attr(-,manageiq,manageiq) %{app_root}/log
%attr(-,manageiq,manageiq) %{app_root}/tmp
%attr(-,manageiq,manageiq) %{app_root}/data/git_repos
%config(noreplace) %{app_root}/config/cable.yml
%exclude %{app_root}/public/pictures
%exclude %{app_root}/public/assets
%exclude %{app_root}/public/packs
Expand Down

0 comments on commit 1dca31f

Please sign in to comment.