commit 2dfac483c890663a0ef4ec8afe2112d7e0698a60
parent ce7f0a3a376f3fff0d8899410ce3f1c99ae388ff
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 17 Dec 2016 13:55:32 +0100
use wake, add test
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/upgrades b/upgrades
@@ -8,8 +8,12 @@ for m in $@
do
screen -S apt -x -X screen -t $m zsh -c \
"echo \"=== upgrading $m ===\n\n\";
+ ~/bin/wake $m;
+ sleep 5;
ssh -t $m 'sudo apt-get update && sudo apt-get dist-upgrade';
- echo \"\n\n=== done upgrading $m===\n\n\";
+ echo \"\n\n=== testing connection to $m ... ===\n\n\";
+ ssh -t $m echo '>>> fine';
+ echo \"\n\n=== done upgrading $m ===\n\n\";
exec zsh"
done