[RackTables/f14] Preserve secret.php across updates
Colin Coe
coec at fedoraproject.org
Fri Jul 22 13:09:29 UTC 2011
commit 4989aa37dae100d37297d9f7c9f7c41030f4031e
Author: Colin Coe <colin.coe at gmail.com>
Date: Fri Jul 22 21:09:12 2011 +0800
Preserve secret.php across updates
RackTables.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/RackTables.spec b/RackTables.spec
index 9b10c65..42c2521 100644
--- a/RackTables.spec
+++ b/RackTables.spec
@@ -1,6 +1,6 @@
Name: RackTables
Version: 0.19.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A data-center asset management system
Group: Applications/Internet
@@ -40,13 +40,19 @@ make DESTDIR=$RPM_BUILD_ROOT prefix=/usr staticdir=%{_datadir}/%{name}/static in
install %{S:1} -p -m 0644 .
install %{S:2} -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/quickinstall.sh
+touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/secret.php
+
%files
%defattr(-,root,root,-)
%doc COPYING LICENSE ChangeLog README README.Fedora
%{_datadir}/%{name}/
%dir %{_sysconfdir}/%{name}
+%ghost %config(noreplace) %{_sysconfdir}/%{name}/secret.php
%changelog
+* Fri Jul 22 2011 Colin Coe <colin.coe at gmail.com> - 0.19.6-2
+- Stop blatting secret.php if it exists
+
* Wed Jul 20 2011 Colin Coe <colin.coe at gmail.com> - 0.19.6-1
- Rebase to v0.19.6
More information about the scm-commits
mailing list