File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ # -*-coding:UTF-8 -*
3+
4+ import os
5+ import sys
6+
7+ sys .path .append (os .environ ['AIL_HOME' ])
8+ ##################################
9+ # Import Project packages
10+ ##################################
11+ from update .bin .ail_updater import AIL_Updater
12+
13+ class Updater (AIL_Updater ):
14+ """default Updater."""
15+
16+ def __init__ (self , version ):
17+ super (Updater , self ).__init__ (version )
18+
19+
20+ if __name__ == '__main__' :
21+ updater = Updater ('v6.4' )
22+ updater .run_update ()
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ [ -z " $AIL_HOME " ] && echo " Needs the env var AIL_HOME. Run the script from the virtual environment." && exit 1;
4+ [ -z " $AIL_REDIS " ] && echo " Needs the env var AIL_REDIS. Run the script from the virtual environment." && exit 1;
5+ [ -z " $AIL_BIN " ] && echo " Needs the env var AIL_ARDB. Run the script from the virtual environment." && exit 1;
6+ [ -z " $AIL_FLASK " ] && echo " Needs the env var AIL_FLASK. Run the script from the virtual environment." && exit 1;
7+
8+ export PATH=$AIL_HOME :$PATH
9+ export PATH=$AIL_REDIS :$PATH
10+ export PATH=$AIL_BIN :$PATH
11+ export PATH=$AIL_FLASK :$PATH
12+
13+ GREEN=" \\ 033[1;32m"
14+ DEFAULT=" \\ 033[0;39m"
15+
16+ echo -e $GREEN " Shutting down AIL ..." $DEFAULT
17+ bash ${AIL_BIN} /LAUNCH.sh -ks
18+ wait
19+
20+ # SUBMODULES #
21+ git submodule update
22+
23+ bash ${AIL_BIN} /LAUNCH.sh -lrv
24+ bash ${AIL_BIN} /LAUNCH.sh -lkv
25+
26+ echo -e $GREEN " Updating python Lexilang..." $DEFAULT
27+ pip uninstall -y lexilang
28+ pip install -U git+https://github.com/ail-project/LexiLang
29+
30+ echo " "
31+ echo -e $GREEN " Updating AIL VERSION ..." $DEFAULT
32+ echo " "
33+ python ${AIL_HOME} /update/v6.4/Update.py
34+ wait
35+ echo " "
36+ echo " "
37+
38+ exit 0
You can’t perform that action at this time.
0 commit comments