fix: [LAUNCH] fix ENV error message

This commit is contained in:
terrtia 2024-02-05 09:57:53 +01:00
parent b6eb6c9016
commit ff59dcf81d
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -20,7 +20,7 @@ if [ -e "${DIR}/AILENV/bin/python" ]; then
export AIL_VENV=${AIL_HOME}/AILENV/ export AIL_VENV=${AIL_HOME}/AILENV/
. ./AILENV/bin/activate . ./AILENV/bin/activate
else else
echo "Please make sure you have a AIL-framework environment, au revoir" echo "Please make sure AILENV is installed"
exit 1 exit 1
fi fi
@ -31,6 +31,7 @@ export PATH=$AIL_KVROCKS:$PATH
export PATH=$AIL_BIN:$PATH export PATH=$AIL_BIN:$PATH
export PATH=$AIL_FLASK:$PATH export PATH=$AIL_FLASK:$PATH
function check_screens {
isredis=`screen -ls | egrep '[0-9]+.Redis_AIL' | cut -d. -f1` isredis=`screen -ls | egrep '[0-9]+.Redis_AIL' | cut -d. -f1`
isardb=`screen -ls | egrep '[0-9]+.ARDB_AIL' | cut -d. -f1` isardb=`screen -ls | egrep '[0-9]+.ARDB_AIL' | cut -d. -f1`
iskvrocks=`screen -ls | egrep '[0-9]+.KVROCKS_AIL' | cut -d. -f1` iskvrocks=`screen -ls | egrep '[0-9]+.KVROCKS_AIL' | cut -d. -f1`
@ -40,6 +41,7 @@ is_ail_2_ail=`screen -ls | egrep '[0-9]+.AIL_2_AIL' | cut -d. -f1`
isscripted=`screen -ls | egrep '[0-9]+.Script_AIL' | cut -d. -f1` isscripted=`screen -ls | egrep '[0-9]+.Script_AIL' | cut -d. -f1`
isflasked=`screen -ls | egrep '[0-9]+.Flask_AIL' | cut -d. -f1` isflasked=`screen -ls | egrep '[0-9]+.Flask_AIL' | cut -d. -f1`
isfeeded=`screen -ls | egrep '[0-9]+.Feeder_Pystemon' | cut -d. -f1` isfeeded=`screen -ls | egrep '[0-9]+.Feeder_Pystemon' | cut -d. -f1`
}
function helptext { function helptext {
echo -e $YELLOW" echo -e $YELLOW"
@ -671,7 +673,7 @@ function menu_display {
} }
#echo "$@" #echo "$@"
check_screens;
while [ "$1" != "" ]; do while [ "$1" != "" ]; do
case $1 in case $1 in
-l | --launchAuto ) launch_all "automatic"; -l | --launchAuto ) launch_all "automatic";
@ -694,6 +696,7 @@ while [ "$1" != "" ]; do
;; ;;
-r | --restart ) killall; -r | --restart ) killall;
sleep 0.1; sleep 0.1;
check_screens;
launch_all "automatic"; launch_all "automatic";
;; ;;
-ks | --killscript ) killscript; -ks | --killscript ) killscript;