forked from aurelien.plancke/ScodocTestClient
12 lines
235 B
Bash
12 lines
235 B
Bash
|
#!/bin/bash
|
||
|
if [ "$#" -ne 2 ];
|
||
|
then
|
||
|
echo "Pas assez d'arguments"
|
||
|
exit 2
|
||
|
fi
|
||
|
ssh $1 /bin/bash<< EOF
|
||
|
cd /opt/scodoc/Products/ScoDoc/
|
||
|
scotests/scointeractive.sh -r test02 scotests/${2}
|
||
|
EOF
|
||
|
ssh $1 'systemctl restart ScoDoc.service'
|