[packages/eventum] skip db upgrade if not yet configured
glen
glen at pld-linux.org
Wed May 8 18:14:30 CEST 2013
commit 00358bbabdf806a14a5aaa7663f6d6c4003460ff
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed May 8 19:12:50 2013 +0300
skip db upgrade if not yet configured
eventum.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/eventum.spec b/eventum.spec
index 3bd4066..cb56c9c 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -576,7 +576,8 @@ for a in cli.log errors.log irc_bot.log login_attempts.log; do
fi
done
-# database update
+# run database update if configured
+test -s %{_webappdir}/config.php && \
%{_appdir}/upgrade/update-database.php || :
# nuke Smarty templates cache after upgrade
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/2f331c68bce09f3e21168865823156b42aa6310e
More information about the pld-cvs-commit
mailing list