]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- dir replaced by symlink auto/th/cacti-1.1.32-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 22 Jan 2018 09:57:22 +0000 (10:57 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 22 Jan 2018 09:57:22 +0000 (10:57 +0100)
cacti.spec

index e2ecfeb0f4fe97d60264cc3fd2dda1f865d2fe06..03111d043c93b00b7f13e7727b94b7ff99c45ff3 100644 (file)
@@ -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
This page took 0.075857 seconds and 4 git commands to generate.