From 52c5ac6bb3903b72cf5bb83f2f6103e7f63282a7 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 18 Dec 2013 12:25:32 +0100 Subject: [PATCH] Automatically upgrade database schema using update.php --- root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss b/root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss index bc709f0..82aa7d1 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss @@ -10,6 +10,8 @@ $OUT .= <<"END"; if [ \! -d /var/lib/mysql/$db ]; then /usr/bin/mysqladmin create $db /usr/bin/mysql $db < $schema +else + su -s /bin/bash - www -c "cd /usr/share/tt-rss && /usr/bin/php ./update.php --update-schema" fi /usr/bin/mysql <