diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl index e022ad7..b685cd1 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl @@ -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 <