From a9593fe78371faa957775b2973a4c9d5b13bc7c1 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 17 Aug 2015 19:55:21 +0200 Subject: [PATCH] remplace who2b par whosthere 2b --- gestion/tools/who2b | 8 -------- gestion/tools/whosthere.py | 2 +- respbats/who2b | 3 +++ respbats/who4j | 5 ----- 4 files changed, 4 insertions(+), 14 deletions(-) delete mode 100755 gestion/tools/who2b create mode 100755 respbats/who2b diff --git a/gestion/tools/who2b b/gestion/tools/who2b deleted file mode 100755 index 06de234c..00000000 --- a/gestion/tools/who2b +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -if [ `hostname` != "vo" ]; then - echo "Merci d'executer ce script sur vo." - exit 1 -fi - -sudo -u root /usr/scripts/gestion/tools/who2b.py "$@" diff --git a/gestion/tools/whosthere.py b/gestion/tools/whosthere.py index e270a280..98014f6d 100755 --- a/gestion/tools/whosthere.py +++ b/gestion/tools/whosthere.py @@ -262,7 +262,7 @@ class Who2B(WhosThere): expected = [ 'terminal.crans.org', 'minigiga.adm.crans.org', - 'belides.wifi.crans.org', + 'mao.wifi.crans.org', 'tinybrother.adm.crans.org', 'vo.crans.org', ] diff --git a/respbats/who2b b/respbats/who2b new file mode 100755 index 00000000..3abe024e --- /dev/null +++ b/respbats/who2b @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo /usr/scripts/gestion/tools/whosthere.py 2b diff --git a/respbats/who4j b/respbats/who4j index 6532b9fa..6da793f0 100755 --- a/respbats/who4j +++ b/respbats/who4j @@ -1,8 +1,3 @@ #!/bin/bash -if [ `hostname` != "zamok" ]; then - echo "Merci d'executer ce script sur zamok." - exit 1 -fi - sudo -u respbats /usr/scripts/gestion/tools/whosthere.py 4j