[packages/cacti] - dir replaced by symlink
arekm
arekm at pld-linux.org
Mon Jan 22 10:57:28 CET 2018
commit d5d78058314d8c86616dbcd7635972cf1193233a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jan 22 10:57:22 2018 +0100
- dir replaced by symlink
cacti.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/cacti.spec b/cacti.spec
index e2ecfeb..03111d0 100644
--- a/cacti.spec
+++ b/cacti.spec
@@ -216,6 +216,12 @@ rm -rf $RPM_BUILD_ROOT
%pre
%useradd -u 184 -d /var/lib/%{name} -g http -c "Cacti User" cacti
+%pretrans
+if [ -d "%{_appdir}/cache" ] && [ ! -L "%{_appdir}/cache" ]; then
+ mv -v %{_appdir}/cache{,.rpmsave}
+fi
+exit 0
+
%post
if [ ! -f /var/log/%{name}/cacti.log ]; then
install -m660 -oroot -ghttp /dev/null /var/log/%{name}/cacti.log
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cacti.git/commitdiff/d5d78058314d8c86616dbcd7635972cf1193233a
More information about the pld-cvs-commit
mailing list