Upgrade the database automatically

This commit is contained in:
Daniel Berteaud 2013-11-24 14:22:32 +01:00
parent e71cf9a1eb
commit f5370c03bd
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ $OUT .= <<"END";
if [ ! -d /var/lib/mysql/$db ]; then
/usr/bin/mysql -e 'create database $db'
/usr/bin/mysql $db < $dbstruct
else
su -s /bin/bash - www -c "cd /usr/share/dl/include/scripts && /usr/bin/php ./dbupgrade.php"
fi
/usr/bin/mysql <<EOF