From d67d5faf71f24964b6d170fef1dfc625315fde27 Mon Sep 17 00:00:00 2001 From: Aurelien PLANCKE Date: Fri, 21 May 2021 16:30:09 +0200 Subject: [PATCH] reprise des tests avec des scripts --- scriptCreationDepartement.sh | 10 ++++++++++ scriptDeleteDepartement.sh | 11 +++++++++++ setup.pyc | Bin 0 -> 583 bytes 3 files changed, 21 insertions(+) create mode 100755 scriptCreationDepartement.sh create mode 100755 scriptDeleteDepartement.sh create mode 100644 setup.pyc diff --git a/scriptCreationDepartement.sh b/scriptCreationDepartement.sh new file mode 100755 index 0000000..671fbd1 --- /dev/null +++ b/scriptCreationDepartement.sh @@ -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 \ No newline at end of file diff --git a/scriptDeleteDepartement.sh b/scriptDeleteDepartement.sh new file mode 100755 index 0000000..14bcef7 --- /dev/null +++ b/scriptDeleteDepartement.sh @@ -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' \ No newline at end of file diff --git a/setup.pyc b/setup.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4959cdce2135d7c060383e5c9afd9537b36b59cf GIT binary patch literal 583 zcmah{T~ER=6upRi`K|xKgcqn15))$#u+2!+VJP^}m$|G(7RS2KJB&ZZXMdo7z}tm{ z;EQW^+IxC>dwbgQ&*9$JmceN8^D`;Hpd0Q95FN3jG0JF9krxdwc;G(bf(*R8n0SOoFu9}TQVML zS4Rx1v5bZ@mm_EIOS%a6dR(4#}r3%HIvFH z%n7HwSY#7?=%t+UZpWOj)As(W&TlqIigkiPpL@Y{{D?IQ{Lxe3K2M6>xHED`PSAIs zhJG+~@s#GbxaU6Sc(`FbpIe=+bgi>Yp*q@d&b@bMWhZ~ALU%^w