From 85a0d944cc643c0bfc4fd475a2a7a418a7efaf85 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 19 May 2020 10:07:27 +0200 Subject: [PATCH] chg: [launcher] add option to reset UI admin password --- bin/LAUNCH.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/LAUNCH.sh b/bin/LAUNCH.sh index 7c6f026e..92da0bdb 100755 --- a/bin/LAUNCH.sh +++ b/bin/LAUNCH.sh @@ -83,6 +83,7 @@ function helptext { [-c | --crawler] LAUNCH Crawlers [-f | --launchFeeder] LAUNCH Pystemon feeder [-t | --thirdpartyUpdate] Update Web + [-rp | --resetPassword] Reset Password [-m | --menu] Display Advanced Menu [-h | --help] Help " @@ -483,6 +484,17 @@ function update_thirdparty { 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 { checking_configuration; update; @@ -598,6 +610,8 @@ while [ "$1" != "" ]; do ;; -t | --thirdpartyUpdate ) update_thirdparty; ;; + -rp | --resetPassword ) reset_password; + ;; -c | --crawler ) launching_crawler; ;; -f | --launchFeeder ) launch_feeder;