From a4067b06924aafe1c0b1bed60bbec243cf215121 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 9 Apr 2010 16:41:53 +0200 Subject: [PATCH] Add -u switch to update.sh to run in "unsafe" mode. Signed-off-by: Florent Bruneau --- upgrade/inc/pervasive.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade/inc/pervasive.sh b/upgrade/inc/pervasive.sh index 758364c..2206abc 100755 --- a/upgrade/inc/pervasive.sh +++ b/upgrade/inc/pervasive.sh @@ -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 -- 2.1.4