This commit is contained in:
qo-op 2020-04-30 04:54:29 +02:00
parent 07e992474d
commit 4fad598050
1 changed files with 27 additions and 31 deletions

View File

@ -61,11 +61,6 @@ if [[ "$isitok" == "y" ]]; then
[[ -L ~/.ssb ]] && rm ~/.ssb
[[ -d ~/.ssb_astroport ]] && ln -s ~/.ssb_astroport ~/.ssb
else
echo "You must remove old '~/.ssb' before running $ME";
exit 1;
fi
cd ~/.ssb/
echo "WELCOME CREATING YOUR G1 SSB ACCOUNT !!!"
@ -89,7 +84,7 @@ passphrase generator...'
# GENERATE MNEMONIC KEY: 9 MOTS
# LOGIN (=SALT) 6 WORDS
salt="$($MY_PATH/diceware.sh 6)"
# PASS (=PEPPER) 3 WORDS
# PASS (=PEPPER) 4 WORDS
pepper="$($MY_PATH/diceware.sh 4)"
echo "........."
@ -103,7 +98,7 @@ fi
# CREATE ~/.ssb/secret.dunikey
python3 $MY_PATH/key_create_dunikey.py "$salt" "$pepper"
sleep 2
sleep 1
[[ -f /tmp/secret.dunikey ]] && mv /tmp/secret.dunikey ~/.ssb/secret.dunikey || exit 1
# CREATE SSB secret
@ -151,10 +146,11 @@ 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
else
echo "You must remove old '~/.ssb' before running $ME";
exit 1;
fi
exit 0