mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [launcher] add option to reset UI admin password
This commit is contained in:
parent
399e379241
commit
85a0d944cc
1 changed files with 14 additions and 0 deletions
|
@ -83,6 +83,7 @@ function helptext {
|
||||||
[-c | --crawler] LAUNCH Crawlers
|
[-c | --crawler] LAUNCH Crawlers
|
||||||
[-f | --launchFeeder] LAUNCH Pystemon feeder
|
[-f | --launchFeeder] LAUNCH Pystemon feeder
|
||||||
[-t | --thirdpartyUpdate] Update Web
|
[-t | --thirdpartyUpdate] Update Web
|
||||||
|
[-rp | --resetPassword] Reset Password
|
||||||
[-m | --menu] Display Advanced Menu
|
[-m | --menu] Display Advanced Menu
|
||||||
[-h | --help] Help
|
[-h | --help] Help
|
||||||
"
|
"
|
||||||
|
@ -483,6 +484,17 @@ function update_thirdparty {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reset_password() {
|
||||||
|
echo -e "\t* Reseting UI admin password..."
|
||||||
|
if checking_ardb && checking_redis; then
|
||||||
|
python ${AIL_HOME}/var/www/create_default_user.py &
|
||||||
|
wait
|
||||||
|
else
|
||||||
|
echo -e $RED"\t* Error: Please launch all Redis and ARDB servers"$DEFAULT
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function launch_all {
|
function launch_all {
|
||||||
checking_configuration;
|
checking_configuration;
|
||||||
update;
|
update;
|
||||||
|
@ -598,6 +610,8 @@ while [ "$1" != "" ]; do
|
||||||
;;
|
;;
|
||||||
-t | --thirdpartyUpdate ) update_thirdparty;
|
-t | --thirdpartyUpdate ) update_thirdparty;
|
||||||
;;
|
;;
|
||||||
|
-rp | --resetPassword ) reset_password;
|
||||||
|
;;
|
||||||
-c | --crawler ) launching_crawler;
|
-c | --crawler ) launching_crawler;
|
||||||
;;
|
;;
|
||||||
-f | --launchFeeder ) launch_feeder;
|
-f | --launchFeeder ) launch_feeder;
|
||||||
|
|
Loading…
Reference in a new issue