forked from aurelien.plancke/ScodocTestClient
14 lines
277 B
Bash
Executable File
14 lines
277 B
Bash
Executable File
#!/bin/bash
|
|
#Se script se charge de se connecter au serveur scodoc et supprimer le département donné en paramètre
|
|
if [ "$#" -ne 2 ];
|
|
then
|
|
echo "Pas assez d'arguments"
|
|
exit 2
|
|
fi
|
|
ssh $1 /bin/bash<< EOF
|
|
cd /opt/scodoc
|
|
. venv/bin/activate
|
|
flask delete-dept ${2}
|
|
y
|
|
EOF
|