wok diff ocsreports/receipt @ rev 15299

Up lsyncd (2.1.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 10:37:53 2013 +0000 (2013-09-27)
parents 52fe6a429a51
children 600aaedb561d
line diff
     1.1 --- a/ocsreports/receipt	Mon Apr 09 12:02:30 2012 +0200
     1.2 +++ b/ocsreports/receipt	Fri Sep 27 10:37:53 2013 +0000
     1.3 @@ -20,9 +20,11 @@
     1.4  	cp -a $src/${PACKAGE} $fs/usr/share/
     1.5  	cat > $fs/etc/ocsreports/dbconfig.inc.php <<EOT
     1.6  <?php 
     1.7 -	\$_SESSION["SERVEUR_SQL"]="localhost";
     1.8 -	\$_SESSION["COMPTE_BASE"]="ocs";
     1.9 -	\$_SESSION["PSWD_BASE"]="ocs";
    1.10 +define("DB_NAME", "ocsweb");
    1.11 +define("SERVER_READ","localhost");
    1.12 +define("SERVER_WRITE","localhost");
    1.13 +define("COMPTE_BASE","ocs");
    1.14 +define("PSWD_BASE","ocs");
    1.15  ?>
    1.16  EOT
    1.17  
    1.18 @@ -70,8 +72,8 @@
    1.19  		fi
    1.20  		if ( ! mysql -Be 'show databases' | grep -q ocsweb ); then
    1.21  			echo -n "Create $PACKAGE database and schema"
    1.22 -		#	mysql -Be "create database ocsweb" ; status
    1.23 -			mysql -f -s -u root < /usr/share/$PACKAGE/files/ocsbase.sql > /dev/null 2>&1
    1.24 +			mysql -Be "create database ocsweb CHARACTER SET utf8 COLLATE utf8_bin" ; status
    1.25 +			mysql -s -u root ocsweb < /usr/share/$PACKAGE/files/ocsbase_new.sql > /dev/null 2>&1
    1.26  			# We suppose that ocs user does not exist.
    1.27  			# It may be false.
    1.28  			echo  -n "Create user ocs with password ocs"