Open loveland in browser

This commit is contained in:
poka 2020-06-04 01:48:59 +02:00
parent d60d40e10c
commit 5c6baa8d93
1 changed files with 7 additions and 1 deletions

View File

@ -119,7 +119,9 @@ echo '
SSB DEMO HTTP interface
' | lolcat
# IN CASE, KILL RUNNING OASIS
sudo kill -9 $(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
isOASIS=$(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
[[ $isOASIS ]] && sudo kill -9 $isOASIS
echo "Starting OASIS with good $NODENAME & network config"
echo "TODO: add to your /etc/rc.local or systemd or initV !!!"
@ -241,4 +243,8 @@ oasis.astroport.com:8008::@UeiA9iqZ0/XTjmYBht230KGr44bsr+Tl5BXSUDFv8vo=.ed25519~
exit 0
fi
# Open LOVEland in browser
URL="http://$NODENAME:10010"
path=$(which xdg-open || which gnome-open) && $path $URL > /dev/null
} # for script being completely downloaded before run