# HG changeset patch # User Eric Joseph-Alexandre # Date 1334492746 -7200 # Node ID bb9d2f1d18bd1bf90db81066a97319be6af77e77 # Parent 9eab57e3dd307fac26ad7558216913b3b11f62c7 ocsreports: Improve post_install diff -r 9eab57e3dd30 -r bb9d2f1d18bd ocsreports/receipt --- a/ocsreports/receipt Sun Apr 15 14:25:08 2012 +0200 +++ b/ocsreports/receipt Sun Apr 15 14:25:46 2012 +0200 @@ -20,9 +20,11 @@ cp -a $src/${PACKAGE} $fs/usr/share/ cat > $fs/etc/ocsreports/dbconfig.inc.php < EOT @@ -70,8 +72,8 @@ fi if ( ! mysql -Be 'show databases' | grep -q ocsweb ); then echo -n "Create $PACKAGE database and schema" - # mysql -Be "create database ocsweb" ; status - mysql -f -s -u root < /usr/share/$PACKAGE/files/ocsbase.sql > /dev/null 2>&1 + mysql -Be "create database ocsweb CHARACTER SET utf8 COLLATE utf8_bin" ; status + mysql -s -u root ocsweb < /usr/share/$PACKAGE/files/ocsbase_new.sql > /dev/null 2>&1 # We suppose that ocs user does not exist. # It may be false. echo -n "Create user ocs with password ocs"