summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-12-19 02:36:41 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-19 02:36:41 +0100
commita66f991dc110fd868569640c1d8ea61c06699157 (patch)
tree5158dd3840843465d5ef324756659328b2adfc5c
parentca15c730b3d439b583cbc5a7ab3eb5fc2198c275 (diff)
downloadjenkins.debian.net-a66f991dc110fd868569640c1d8ea61c06699157.tar.xz
allow arbitrary commands only for all hosts
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xdeploy_everywhere11
1 files changed, 7 insertions, 4 deletions
diff --git a/deploy_everywhere b/deploy_everywhere
index f50abdc6..855eed01 100755
--- a/deploy_everywhere
+++ b/deploy_everywhere
@@ -15,6 +15,7 @@
# useful things:
# ./deploy_everywhere all - deploy on all nodes (and handle 398 days hosts properly)
+# ./deploy_everywhere all $foo - run "$foo" on all nodes (and handle 398 days hosts properly)
# ./deploy_everywhere - deploy on jenkins only
# ./deploy_everywhere jenkins - deploy on jenkins only
# ./deploy_everywhere jenkins pb10 - deploy on jenkins and pb10
@@ -89,6 +90,12 @@ if [ "$1" = "all" ] ; then
echo -n "Running j.d.n.git updates on $HOSTS now"
# reset_clock can be false as update_jdn.sh sets the time
reset_clock=false
+ shift
+ if [ -z "$1" ] ; then
+ real_command="$@"
+ echo -n "Running '$real_command' on $HOSTS now."
+ real_command="$@ && echo '__reallyreally=ok__'"
+ fi
elif [ "$1" = "upgrade" ] ; then
real_command="export LANG=C && sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get clean"
shift
@@ -125,10 +132,6 @@ elif [ "$1" = "" ] || [ "$1" = "jenkins" ] ; then
esac
done
echo -n "Running j.d.n.git ('$real_command') updates on $HOSTS now"
-else
- real_command="$@"
- echo -n "Running '$real_command' on $HOSTS now."
- real_command="$@ && echo '__reallyreally=ok__'"
fi
BG=""