Automatically upgrade database schema using update.php

tags/0.2.6_el5 0.2.6_el5
Daniel Berteaud 11 years ago
parent f79cfa865c
commit 52c5ac6bb3
  1. 2
      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 if [ \! -d /var/lib/mysql/$db ]; then
/usr/bin/mysqladmin create $db /usr/bin/mysqladmin create $db
/usr/bin/mysql $db < $schema /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 fi
/usr/bin/mysql <<EOF /usr/bin/mysql <<EOF

Loading…
Cancel
Save