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
|
||||
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
|
||||
|
@ -6,7 +6,8 @@ then
|
||||
exit 2
|
||||
fi
|
||||
ssh $1 /bin/bash<< EOF
|
||||
cd /opt/scodoc/tools
|
||||
./delete_dept.sh -n ${2}
|
||||
cd /opt/scodoc
|
||||
. venv/bin/activate
|
||||
flask delete-dept ${2}
|
||||
y
|
||||
EOF
|
||||
# ssh $1 'systemctl restart scodoc'
|
||||
|
Loading…
Reference in New Issue
Block a user