mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [LAUNCH] add AIL update by default
This commit is contained in:
parent
7aff45c507
commit
347986a271
4 changed files with 26 additions and 1 deletions
|
@ -382,6 +382,16 @@ function shutdown {
|
||||||
bash -c "./Shutdown.py"
|
bash -c "./Shutdown.py"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update() {
|
||||||
|
bash -c "./Update.py"
|
||||||
|
|
||||||
|
exitStatus=$?
|
||||||
|
if [ $exitStatus -ge 1 ]; then
|
||||||
|
echo -e $RED"\t* Update Error"$DEFAULT
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function update_thirdparty {
|
function update_thirdparty {
|
||||||
echo -e "\t* Updating thirdparty..."
|
echo -e "\t* Updating thirdparty..."
|
||||||
bash -c "(cd ${AIL_FLASK}; ./update_thirdparty.sh)"
|
bash -c "(cd ${AIL_FLASK}; ./update_thirdparty.sh)"
|
||||||
|
@ -395,6 +405,7 @@ function update_thirdparty {
|
||||||
}
|
}
|
||||||
|
|
||||||
function launch_all {
|
function launch_all {
|
||||||
|
update;
|
||||||
launch_redis;
|
launch_redis;
|
||||||
launch_ardb;
|
launch_ardb;
|
||||||
launch_logs;
|
launch_logs;
|
||||||
|
@ -408,7 +419,7 @@ function launch_all {
|
||||||
|
|
||||||
helptext;
|
helptext;
|
||||||
|
|
||||||
options=("Redis" "Ardb" "Logs" "Queues" "Scripts" "Flask" "Killall" "Shutdown" "Update-config" "Update-thirdparty")
|
options=("Redis" "Ardb" "Logs" "Queues" "Scripts" "Flask" "Killall" "Shutdown" "Update" "Update-config" "Update-thirdparty")
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
echo "What do you want to Launch?:"
|
echo "What do you want to Launch?:"
|
||||||
|
@ -459,6 +470,9 @@ function launch_all {
|
||||||
Shutdown)
|
Shutdown)
|
||||||
shutdown;
|
shutdown;
|
||||||
;;
|
;;
|
||||||
|
Update)
|
||||||
|
update;
|
||||||
|
;;
|
||||||
Update-config)
|
Update-config)
|
||||||
checking_configuration "manual";
|
checking_configuration "manual";
|
||||||
;;
|
;;
|
||||||
|
@ -478,6 +492,8 @@ while [ "$1" != "" ]; do
|
||||||
;;
|
;;
|
||||||
-k | --killAll ) killall;
|
-k | --killAll ) killall;
|
||||||
;;
|
;;
|
||||||
|
-u | --update ) update;
|
||||||
|
;;
|
||||||
-t | --thirdpartyUpdate ) update_thirdparty;
|
-t | --thirdpartyUpdate ) update_thirdparty;
|
||||||
;;
|
;;
|
||||||
-c | --crawler ) launching_crawler;
|
-c | --crawler ) launching_crawler;
|
||||||
|
|
4
configs/update.cfg
Normal file
4
configs/update.cfg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[Update]
|
||||||
|
auto_update = True
|
||||||
|
upstream = upstream
|
||||||
|
update-fork = False
|
1
update/current_version
Normal file
1
update/current_version
Normal file
|
@ -0,0 +1 @@
|
||||||
|
v1.4
|
4
update/v1.5/Update.sh
Executable file
4
update/v1.5/Update.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo $AIL_HOME
|
||||||
|
|
Loading…
Reference in a new issue