ajustement des script de gestioin des depts via flask

This commit is contained in:
Jean-Marie Place 2021-08-18 15:53:44 +02:00
parent b66631cdcc
commit 0d177f7b0b
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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