forked from aurelien.plancke/ScodocTestClient
ajustement des script de gestioin des depts via flask
This commit is contained in:
parent
b66631cdcc
commit
0d177f7b0b
@ -6,6 +6,7 @@ then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
ssh $1 /bin/bash<< EOF
|
ssh $1 /bin/bash<< EOF
|
||||||
cd /opt/scodoc/tools
|
cd /opt/scodoc
|
||||||
./create_dept.sh -n ${2}
|
. venv/bin/activate
|
||||||
|
flask create-dept $2
|
||||||
EOF
|
EOF
|
||||||
|
@ -6,7 +6,8 @@ then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
ssh $1 /bin/bash<< EOF
|
ssh $1 /bin/bash<< EOF
|
||||||
cd /opt/scodoc/tools
|
cd /opt/scodoc
|
||||||
./delete_dept.sh -n ${2}
|
. venv/bin/activate
|
||||||
EOF
|
flask delete-dept ${2}
|
||||||
# ssh $1 'systemctl restart scodoc'
|
y
|
||||||
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user