Fix database upgrades

tags/0.2.8_el5 0.2.8_el5
Daniel Berteaud 11 years ago
parent 9bf6ec7e9c
commit a6b9f89860
  1. 2
      root/etc/e-smith/templates/etc/e-smith/sql/init/tt-rss/80tt-rss

@ -11,7 +11,7 @@ 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 else
su -s /bin/bash - www -c "cd /usr/share/tt-rss && /usr/bin/php ./update.php --update-schema" su -s /bin/bash - www -c "cd /usr/share/tt-rss && echo 'yes' | /usr/bin/php ./update.php --update-schema"
fi fi
/usr/bin/mysql <<EOF /usr/bin/mysql <<EOF

Loading…
Cancel
Save