Skip to content

Commit

Permalink
Merge pull request #570 from hamelg/patch-03
Browse files Browse the repository at this point in the history
add rpmspec option to not overwrite existing config files
  • Loading branch information
shortdudey123 committed Feb 22, 2017
2 parents 045ed18 + d042a75 commit a7c364d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpm/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

CONFIGFILES="
%config(noreplace) /etc/diamond/*"
echo "$CONFIGFILES" | cat INSTALLED_FILES - > INSTALLED_FILES.new
mv INSTALLED_FILES.new INSTALLED_FILES

0 comments on commit a7c364d

Please sign in to comment.