Ignore allow-root in update-prod when not running as root
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 17 May 2020 09:41:55 +0000 (11:41 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 17 May 2020 09:41:55 +0000 (11:41 +0200)
bin/upgrade-prod.sh

index c5c78f73a8e5cb9e36c180d72314f11461fce577..c57a7d8a21a0887b716ca732bb1b12b2fb8144b3 100755 (executable)
@@ -38,7 +38,9 @@ fi
 NO_GIT=false
 
 while ! [ -z "${1+x}" ]; do
-    if [ "$1" = "--prod-public-dir" ]; then
+    if [ "$1" = "--allow-root" ]; then
+        shift
+    elif [ "$1" = "--prod-public-dir" ]; then
         export PROD_PUBLIC_DIR=$2
         shift
         shift