From 97c8c5381650fa29d1718b044c019f1db66b9182 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Sat, 23 Jul 2016 17:37:17 +0200 Subject: [PATCH] Init database at install, fix #28 --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 33fbb51..819cd99 100644 --- a/scripts/install +++ b/scripts/install @@ -82,6 +82,9 @@ then sudo sed -i "s/define('DISABLE_LOGOUT'.*$/define('DISABLE_LOGOUT', false);/g" ${DESTDIR}/config.php fi +# Init database +ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ${DESTDIR}/app/Schema/Sql/mysql.sql + # Reload services sudo service php5-fpm restart || true sudo service nginx reload || true