Add -u switch to update.sh to run in "unsafe" mode.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 9 Apr 2010 14:41:53 +0000 (16:41 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 9 Apr 2010 14:41:53 +0000 (16:41 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/inc/pervasive.sh

index 758364c..2206abc 100755 (executable)
@@ -5,9 +5,9 @@ MYSQL='mysql -u admin '
 
 set -e
 
-if [ "$UID" != 0 ]; then
+if [ "$UID" != 0 ] && [ "$1" != "-u" ] ; then
     echo "has to be run as root"
-#    exit 1
+    exit 1
 fi
 
 if [[ -n "${DBPREFIX}" ]]; then