[packages/cacti] Database upgrade needs setup files

arekm arekm at pld-linux.org
Sun Nov 30 00:37:15 CET 2014


commit 5e284e3e1c91ad2e0052e7ce3203995dc1e69bbe
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Nov 30 00:37:09 2014 +0100

    Database upgrade needs setup files

 cacti.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/cacti.spec b/cacti.spec
index c00ec15..98755bf 100644
--- a/cacti.spec
+++ b/cacti.spec
@@ -202,13 +202,14 @@ if [ ! -f /var/log/%{name}/cacti.log ]; then
 	install -m660 -oroot -ghttp /dev/null /var/log/%{name}/cacti.log
 fi
 
-%{_appdir}/cli/upgrade_database.php || :
-
 %postun
 if [ "$1" = "0" ]; then
 	%userremove cacti
 fi
 
+%post setup
+%{_appdir}/cli/upgrade_database.php || :
+
 %triggerin -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cacti.git/commitdiff/5e284e3e1c91ad2e0052e7ce3203995dc1e69bbe



More information about the pld-cvs-commit mailing list