From 0d177f7b0b863476efb061642edf8e1db4fc9d79 Mon Sep 17 00:00:00 2001 From: Place Jean-Marie Date: Wed, 18 Aug 2021 15:53:44 +0200 Subject: [PATCH] ajustement des script de gestioin des depts via flask --- scriptCreationDepartement.sh | 5 +++-- scriptDeleteDepartement.sh | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scriptCreationDepartement.sh b/scriptCreationDepartement.sh index c56b575..9e7d08d 100755 --- a/scriptCreationDepartement.sh +++ b/scriptCreationDepartement.sh @@ -6,6 +6,7 @@ then exit 2 fi ssh $1 /bin/bash<< EOF -cd /opt/scodoc/tools -./create_dept.sh -n ${2} +cd /opt/scodoc +. venv/bin/activate +flask create-dept $2 EOF diff --git a/scriptDeleteDepartement.sh b/scriptDeleteDepartement.sh index 7eb3d43..ed2d830 100755 --- a/scriptDeleteDepartement.sh +++ b/scriptDeleteDepartement.sh @@ -6,7 +6,8 @@ then exit 2 fi ssh $1 /bin/bash<< EOF -cd /opt/scodoc/tools -./delete_dept.sh -n ${2} -EOF -# ssh $1 'systemctl restart scodoc' +cd /opt/scodoc +. venv/bin/activate +flask delete-dept ${2} +y +EOF