diff --git a/lomes-setup.sh b/lomes-setup.sh index 894a8f1..819925e 100755 --- a/lomes-setup.sh +++ b/lomes-setup.sh @@ -90,7 +90,6 @@ while true; do echo -e "\n ${LRD}Interface not found... Try again!${CRS}\n" fi -done ip4=$(/sbin/ip -o -4 addr list "$nif" | awk '{print $4}' | cut -d/ -f1) ### GET IP FOR CHOSEN INTERFACE ! echo -e "\n ${YEL}Current hostname : ${LCY}$(hostname)${CRS}" @@ -204,7 +203,7 @@ else fi -if [ -f "/tmp/LoMeS/honacha" ]; then ### HOST NAME CHANGE !? +if [ -f "/tmp/LoMeS/honacha" ]; then ### REBOOT DUE TO HOST NAME CHANGE echo -e "\n ${YEL}During setup you changed this machines host name. For the change to take effect, you should reboot! " while true; do @@ -225,7 +224,9 @@ if [ -f "/tmp/LoMeS/honacha" ]; then done else - : + chmod +x lomes-app.py + ./lomes-app.py &> /dev/null & disown + echo -e "\n ${LGN}Flask is running...${CRS}\n" fi