From: Florent Bruneau Date: Fri, 9 Apr 2010 14:41:53 +0000 (+0200) Subject: Add -u switch to update.sh to run in "unsafe" mode. X-Git-Tag: xorg/1.0.0~316 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a4067b06924aafe1c0b1bed60bbec243cf215121;p=platal.git Add -u switch to update.sh to run in "unsafe" mode. Signed-off-by: Florent Bruneau --- 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