ScodocTestClient/scriptDeleteDepartement.sh

13 lines
313 B
Bash
Raw Normal View History

2021-05-21 16:30:09 +02:00
#!/bin/bash
#Se script se charge de se connecter au serveur scodoc et supprimer le département donné en paramètre
2021-05-21 16:30:09 +02:00
if [ "$#" -ne 2 ];
then
echo "Pas assez d'arguments"
exit 2
fi
ssh $1 /bin/bash<< EOF
cd /opt/scodoc/Products/ScoDoc/config
./delete_dept.sh -n ${2}
EOF
2021-07-26 15:55:34 +02:00
ssh $1 'systemctl restart scodoc'