add ./ctl update
This commit is contained in:
parent
7443e33270
commit
706df6cc4b
1 changed files with 9 additions and 0 deletions
9
ctl
9
ctl
|
@ -78,6 +78,15 @@ if [ "$1" == "ui" ]; then
|
|||
python2 $NAME/oml/ui.py $@
|
||||
exit $?
|
||||
fi
|
||||
if [ "$1" == "update" ]; then
|
||||
cd $BASE/platform
|
||||
git pull
|
||||
cd $BASE/$NAME
|
||||
git pull
|
||||
$0 db upgrade
|
||||
$0 setup
|
||||
exit
|
||||
fi
|
||||
|
||||
cd $BASE/$NAME
|
||||
python2 oml $@
|
||||
|
|
Loading…
Reference in a new issue