forked from aurelien.plancke/ScodocTestClient
reprise des tests avec des scripts
This commit is contained in:
parent
e6ba82b409
commit
d67d5faf71
10
scriptCreationDepartement.sh
Executable file
10
scriptCreationDepartement.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
if [ "$#" -ne 2 ];
|
||||
then
|
||||
echo "Pas assez d'arguments"
|
||||
exit 2
|
||||
fi
|
||||
ssh $1 /bin/bash<< EOF
|
||||
cd /opt/scodoc/Products/ScoDoc/config
|
||||
./create_dept.sh -n ${2}
|
||||
EOF
|
11
scriptDeleteDepartement.sh
Executable file
11
scriptDeleteDepartement.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
ssh $1 'systemctl restart ScoDoc.service'
|
Loading…
Reference in New Issue
Block a user