From 3e2c32d114c3895f6c9b8a891ed279671cb18955 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Tue, 2 Oct 2018 12:13:30 +0200 Subject: [PATCH] Pass argument to upgrade_session --- registry/scripts/upgrade_all.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/registry/scripts/upgrade_all.sh b/registry/scripts/upgrade_all.sh index c6a9686..6b35643 100755 --- a/registry/scripts/upgrade_all.sh +++ b/registry/scripts/upgrade_all.sh @@ -34,12 +34,7 @@ broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1) wait_time=120 wait_step=5 -if [ -z "$1" ] -then - cmd="cd /opt/primtux-eole/; export HTTPS_PROXY='http://dnsproxy:3128'; git pull; ./upgrade-session.sh" -else - cmd="$@" -fi +cmd="cd /opt/primtux-eole/; export HTTPS_PROXY='http://dnsproxy:3128'; git pull; ./upgrade-session.sh $1" while read date mac name do -- GitLab