-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ownership of the git configuration file
This allows users to run git config commands without having to set up permissions. The config file is marked as noreplace to respect the user's content.
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
Name: rubygem-%{gem_name} | ||
Version: 9.5.1 | ||
Release: 1%{?foremandist}%{?dist} | ||
Release: 2%{?foremandist}%{?dist} | ||
Summary: Template-syncing engine for Foreman | ||
License: GPLv3 | ||
URL: https://github.com/theforeman/foreman_templates | ||
|
@@ -67,6 +67,10 @@ cp -a .%{gem_dir}/* \ | |
%foreman_bundlerd_file | ||
%foreman_precompile_plugin -s | ||
|
||
# Ensure a git config file exists | ||
mkdir -p %{buildroot}%{foreman_dir}/.config/git | ||
touch %{buildroot}%{foreman_dir}/.config/git/config | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%license %{gem_instdir}/LICENSE | ||
|
@@ -84,6 +88,7 @@ cp -a .%{gem_dir}/* \ | |
%{foreman_assets_foreman} | ||
%{foreman_webpack_plugin} | ||
%{foreman_webpack_foreman} | ||
%attr(0600, foreman, foreman) %config(noreplace) %{foreman_dir}/.config/git/config | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
|
@@ -94,6 +99,9 @@ cp -a .%{gem_dir}/* \ | |
%{foreman_plugin_log} | ||
|
||
%changelog | ||
* Wed Aug 28 2024 Ewoud Kohl van Wijngaarden <[email protected]> - 9.5.1-2 | ||
- Add ownership of the git configuration file | ||
|
||
* Sun Aug 11 2024 Foreman Packaging Automation <[email protected]> - 9.5.1-1 | ||
- Update to 9.5.1 | ||
|
||
|