Shouldn't have commited that.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Feb 2010 12:16:10 +0000 (13:16 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Feb 2010 12:26:39 +0000 (13:26 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/account/copy_tables.php
upgrade/inc/pervasive.sh

index 7749f8f..027b3e7 100755 (executable)
 
 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 . '
index ede0942..3eb0dae 100755 (executable)
@@ -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."