diff --git a/gestion/tools/whokfet.py b/archive/gestion/tools/whokfet.py similarity index 100% rename from gestion/tools/whokfet.py rename to archive/gestion/tools/whokfet.py diff --git a/respbats/who2b b/respbats/who2b index 3abe024e..c87d6d72 100755 --- a/respbats/who2b +++ b/respbats/who2b @@ -1,3 +1,4 @@ #!/bin/bash -sudo /usr/scripts/gestion/tools/whosthere.py 2b + +exec sudo -u respbats /usr/scripts/gestion/tools/whosthere.py 2b "$@" diff --git a/respbats/who4j b/respbats/who4j index 6da793f0..9c2fff21 100755 --- a/respbats/who4j +++ b/respbats/who4j @@ -1,3 +1,4 @@ #!/bin/bash -sudo -u respbats /usr/scripts/gestion/tools/whosthere.py 4j +exec sudo -u respbats /usr/scripts/gestion/tools/whosthere.py 4j "$@" + diff --git a/respbats/whodal b/respbats/whodal index 0ca1a602..b1e1291f 100755 --- a/respbats/whodal +++ b/respbats/whodal @@ -1,8 +1,4 @@ #!/bin/bash -if [ `hostname` != "zamok" ]; then - echo "Merci d'executer ce script sur zamok." - exit 1 -fi +exec sudo -u respbats /usr/scripts/gestion/tools/whosthere.py dalembert "$@" -sudo -u respbats /usr/scripts/gestion/tools/whosthere.py dalembert diff --git a/respbats/whokfet b/respbats/whokfet index dbd27b27..4c2376bf 100755 --- a/respbats/whokfet +++ b/respbats/whokfet @@ -5,4 +5,4 @@ if [ `hostname` != "zamok" ]; then exit 1 fi -exec sudo -u respbats /usr/scripts/gestion/tools/whokfet.py "$@" +exec sudo -u respbats /usr/scripts/gestion/tools/whosthere.py kfet "$@"