]> git.pld-linux.org Git - packages/cacti.git/commitdiff
Database upgrade needs setup files
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 29 Nov 2014 23:37:09 +0000 (00:37 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 29 Nov 2014 23:37:09 +0000 (00:37 +0100)
cacti.spec

index c00ec15884fcba34c23a9e54fdbcd16bb5657592..98755bfb41a486f9580efe7b632df7225ad6b459 100644 (file)
@@ -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}
 
This page took 0.089886 seconds and 4 git commands to generate.