mieux
This commit is contained in:
parent
ddfb39274b
commit
07e992474d
|
@ -43,8 +43,6 @@ if [[ ! $(which sbotc) ]]; then
|
||||||
cd $MY_PATH
|
cd $MY_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d ~/.ssb ]]; then
|
|
||||||
echo "ScuttleButt is already installed...??"
|
|
||||||
echo "Do you want to create a new ~/.ssb identity (will backup current one) ? (y)/n"
|
echo "Do you want to create a new ~/.ssb identity (will backup current one) ? (y)/n"
|
||||||
read isitok
|
read isitok
|
||||||
if [[ "$isitok" == "y" ]]; then
|
if [[ "$isitok" == "y" ]]; then
|
||||||
|
@ -54,10 +52,6 @@ if [[ -d ~/.ssb ]]; then
|
||||||
|
|
||||||
# If exists backup ~/.ssb to ~/.ssb_$USER SSB (one time only !)
|
# If exists backup ~/.ssb to ~/.ssb_$USER SSB (one time only !)
|
||||||
[[ -d ~/.ssb_$USER ]] && echo "BACKUP already existing... ~/.ssb_$USER !!! Manual check please..." && exit 1
|
[[ -d ~/.ssb_$USER ]] && echo "BACKUP already existing... ~/.ssb_$USER !!! Manual check please..." && exit 1
|
||||||
|
|
||||||
# [[ $ssbSERVER == "" ]] && echo "Check your ssb-server install... Cannot find it !!" && exit 1 \
|
|
||||||
# || kill -9 $(ps auxf --sort=+utime | grep -w ssb-server| grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
|
|
||||||
|
|
||||||
[[ -d ~/.ssb ]] && [[ ! -d ~/.ssb_$USER ]] && mv ~/.ssb ~/.ssb_$USER
|
[[ -d ~/.ssb ]] && [[ ! -d ~/.ssb_$USER ]] && mv ~/.ssb ~/.ssb_$USER
|
||||||
|
|
||||||
# CREATE ~/.ssb_astroport
|
# CREATE ~/.ssb_astroport
|
||||||
|
@ -71,7 +65,6 @@ if [[ -d ~/.ssb ]]; then
|
||||||
echo "You must remove old '~/.ssb' before running $ME";
|
echo "You must remove old '~/.ssb' before running $ME";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
cd ~/.ssb/
|
cd ~/.ssb/
|
||||||
|
|
||||||
|
@ -111,7 +104,7 @@ fi
|
||||||
# CREATE ~/.ssb/secret.dunikey
|
# CREATE ~/.ssb/secret.dunikey
|
||||||
python3 $MY_PATH/key_create_dunikey.py "$salt" "$pepper"
|
python3 $MY_PATH/key_create_dunikey.py "$salt" "$pepper"
|
||||||
sleep 2
|
sleep 2
|
||||||
[[ -f /tmp/secret.dunikey ]] && mv /tmp/secret.dunikey ~/.ssb/ || exit 1
|
[[ -f /tmp/secret.dunikey ]] && mv /tmp/secret.dunikey ~/.ssb/secret.dunikey || exit 1
|
||||||
|
|
||||||
# CREATE SSB secret
|
# CREATE SSB secret
|
||||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
||||||
|
|
Loading…
Reference in New Issue