diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 718b319..bcfe62a 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -56,11 +56,6 @@ if [[ -d ~/.ssb ]]; then [[ -L ~/.ssb ]] && rm ~/.ssb [[ -d ~/.ssb_astroport ]] && ln -s ~/.ssb_astroport ~/.ssb - # INITIALISE manifest - printf '{"manifest":"sync"}' > ~/.ssb/manifest.json - ssb-server start & - sbotc -t async manifest > ~/.ssb/manifest.json - else echo "You must remove '~/.ssb' before running $ME"; exit 1; @@ -144,4 +139,10 @@ login (salt) : $salt password : $pepper " +# INITIALISE manifest +[[ $ssbSERVER ]] && [[ ! -f ~/.ssb/manifest.json ]] && printf '{"manifest":"sync"}' > ~/.ssb/manifest.json +[[ $ssbSERVER ]] && ssb-server start & +[[ $ssbSERVER ]] && [[ ! -f ~/.ssb/manifest.json ]] && sbotc -t async manifest > ~/.ssb/manifest.json + + exit 0