Open loveland in browser
This commit is contained in:
parent
d60d40e10c
commit
5c6baa8d93
|
@ -119,7 +119,9 @@ echo '
|
||||||
SSB DEMO HTTP interface
|
SSB DEMO HTTP interface
|
||||||
' | lolcat
|
' | lolcat
|
||||||
# IN CASE, KILL RUNNING OASIS
|
# 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 "Starting OASIS with good $NODENAME & network config"
|
||||||
echo "TODO: add to your /etc/rc.local or systemd or initV !!!"
|
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
|
exit 0
|
||||||
fi
|
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
|
} # for script being completely downloaded before run
|
||||||
|
|
Loading…
Reference in New Issue