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