From 59a437a985943a683b1de6b895e4c71bb7315595 Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 4 Jun 2020 16:03:50 +0200 Subject: [PATCH] open browser tabs --- .install/loveland.sh | 23 ++++++++++++++++------- zen/tools/make_G1SSB_secret.sh | 20 +++++++++++--------- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.install/loveland.sh b/.install/loveland.sh index 0d33a53..5fb8556 100755 --- a/.install/loveland.sh +++ b/.install/loveland.sh @@ -235,16 +235,25 @@ if [[ $err ]]; then else echo -e "${c_green}LOVE Land a été installé avec succès$c_" - echo "LoveLand Portal link http://$NODENAME:10010 (TRY ME) - -Add ScuttleButt Astroport PUB Invitation in http://$NODENAME:3000/settings -oasis.astroport.com:8008::@UeiA9iqZ0/XTjmYBht230KGr44bsr+Tl5BXSUDFv8vo=.ed25519~jd9Z4y/d/xZCF7bfuSgQSiSGLMeWFhwMosKUFhFxeEY=" + echo -e "LoveLand Portal link http://$NODENAME:10010 (TRY ME) + +Add ScuttleButt Astroport PUB Invitation in http://$NODENAME:3000/settings +${c_light}oasis.astroport.com:8008::@UeiA9iqZ0/XTjmYBht230KGr44bsr+Tl5BXSUDFv8vo=.ed25519~jd9Z4y/d/xZCF7bfuSgQSiSGLMeWFhwMosKUFhFxeEY=" $c_ - exit 0 fi # Open LOVEland in browser -URL="http://$NODENAME:10010" -path=$(which xdg-open || which gnome-open) && $path $URL > /dev/null +URL="http://$NODENAME" +path=$(which xdg-open || which gnome-open) + +xo () +{ + for var in "$@"; do + $path "$var"; + sleep 0.5 + done +} + +[[ -n $path ]] && xo $URL:10010 $URL:10020 $URL:10030 > /dev/null } # for script being completely downloaded before run diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 0de83b7..8c35e95 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -334,17 +334,19 @@ sleep 10 #sleep 7 # Intall Patchwork -wget https://github.com/ssbc/patchwork/releases/download/v3.18.0/ssb-patchwork_3.18.0_amd64.deb -O /tmp/patchwork.deb -sudo dpkg -i /tmp/patchwork.deb -sleep 1 -rm /tmp/patchwork.deb +if [[ ! $(which ssb-patchwork) ]]; then + wget https://github.com/ssbc/patchwork/releases/download/v3.18.0/ssb-patchwork_3.18.0_amd64.deb -O /tmp/patchwork.deb + sudo dpkg -i /tmp/patchwork.deb + sleep 1 + rm /tmp/patchwork.deb -## npm install way -##npm install --global ssb-patchwork -sleep 2 + ## npm install way + ##npm install --global ssb-patchwork + sleep 2 -# Start Patchwork -#[[ $(which ssb-patchwork) ]] && ssb-patchwork || echo -e "${c_red}Patchwork is not installed$c_" + # Start Patchwork + #[[ $(which ssb-patchwork) ]] && ssb-patchwork || echo -e "${c_red}Patchwork is not installed$c_" +fi ~/.zen/astroport/zen/ssb_INIT.sh ~/.zen/astroport/zen/cron_VRFY.sh