From: Florent Bruneau Date: Sun, 21 Feb 2010 12:16:10 +0000 (+0100) Subject: Shouldn't have commited that. X-Git-Tag: xorg/1.0.0~332^2~191 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=161daeb9cd8ea080de6d49fff42902e1e0817bc0;p=platal.git Shouldn't have commited that. Signed-off-by: Florent Bruneau --- diff --git a/upgrade/account/copy_tables.php b/upgrade/account/copy_tables.php index 7749f8f..027b3e7 100755 --- a/upgrade/account/copy_tables.php +++ b/upgrade/account/copy_tables.php @@ -22,6 +22,10 @@ require('./connect.db.inc.php'); +$globals->dbuser = 'admin'; +$globals->dbpwd = 'lknjiuhb'; +$globals->debug = 1; + function copyTable($source, $target, $convertToInnoDB = true) { XDB::execute('CREATE TABLE ' . $target . ' diff --git a/upgrade/inc/pervasive.sh b/upgrade/inc/pervasive.sh index ede0942..3eb0dae 100755 --- a/upgrade/inc/pervasive.sh +++ b/upgrade/inc/pervasive.sh @@ -5,10 +5,10 @@ MYSQL='mysql -u admin ' set -e -#if [ "$UID" != 0 ]; then -# echo "has to be run as root" -# exit 1 -#fi +if [ "$UID" != 0 ]; then + echo "has to be run as root" + exit 1 +fi if [[ -n "${DBPREFIX}" ]]; then echo "Using non-default database ${DBPREFIX}x4dat."