forked from axiom-team/astroport
silkaj install & contact & getnode
This commit is contained in:
parent
e0398bb2f0
commit
0f56b2b643
|
@ -13,16 +13,18 @@ unset err
|
||||||
# Basics
|
# Basics
|
||||||
sudo apt update
|
sudo apt update
|
||||||
echo -e "${c_yellow}Mise à jours des prérequis...$c_"
|
echo -e "${c_yellow}Mise à jours des prérequis...$c_"
|
||||||
sudo apt install curl jq zip unzip htop tree ntpdate gnupg ssmtp mpack imagemagick qrencode bc -y
|
sudo apt install curl jq zip unzip htop tree ntpdate gnupg mpack imagemagick qrencode build-essential base58 bc -y
|
||||||
|
|
||||||
# Silkaj + Duniterpy
|
# Silkaj + Duniterpy
|
||||||
silkaj() {
|
silkaj() {
|
||||||
echo -e "${c_yellow}Installation de Silkaj...$c_"
|
echo -e "${c_yellow}Installation de Silkaj...$c_"
|
||||||
libsodium=$(sudo apt search libsodium 2>/dev/null | grep -v -E "header|debug symbols" | grep "Network communication" -B1 | head -n1 | awk -F '/' '{ print $1 }')
|
libsodium=$(sudo apt-cache search libsodium 2>/dev/null | grep -v -E "header|debug symbols" | grep "Network communication" -B1 | head -n1 | awk -F '-' '{ print $1 }')
|
||||||
[[ $libsodium =~ " " ]] && libsodium=$(echo $libsodium | awk '{ print $2 }')
|
[[ $libsodium =~ " " ]] && libsodium=$(echo $libsodium | awk '{ print $2 }')
|
||||||
sudo apt install python3-pip $libsodium -y || err+="Install python3 and $libsodium"
|
sudo apt install libsodium-dev libssl-dev libffi-dev python3-pip python3-wheel $libsodium -y || err+="Install python3 and $libsodium"
|
||||||
pip3 install duniterpy || err+="Install duniterpy"
|
pip3 install duniterpy || err+="Install duniterpy"
|
||||||
pip3 install silkaj --user || err+="Install Silkaj"
|
pip3 install silkaj --user || err+="Install Silkaj"
|
||||||
|
|
||||||
|
source .profile ## PATH="$HOME/.local/bin:$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -107,12 +107,12 @@ http://localhost:8080/ipns/
|
||||||
type="$(file -b --mime-type "$file")"
|
type="$(file -b --mime-type "$file")"
|
||||||
size="$(wc -c < "$file")"
|
size="$(wc -c < "$file")"
|
||||||
|
|
||||||
echo "
|
echo '
|
||||||
______ _ _ _ ____ __ _ _ _ _ _____
|
______ _ _ _ ____ __ _ _ _ _ _____
|
||||||
/\ (_ ||_)/ \|_)/ \|_)|__(_\ //\ |_)|\/||/|_\_/ |_)/ \(_ |
|
/\ (_ ||_)/ \|_)/ \|_)|__(_\ //\ |_)|\/||/|_\_/ |_)/ \(_ |
|
||||||
/--\__) || \\_/| \_/| \| __)\/\//--\| \| ||\|_ | | \_/__) |
|
/--\__) || \\_/| \_/| \| __)\/\//--\| \| ||\|_ | | \_/__) |
|
||||||
|
'
|
||||||
SSB
|
echo "SSB
|
||||||
#astroport-swarmkey
|
#astroport-swarmkey
|
||||||
[$name]($id)
|
[$name]($id)
|
||||||
TO.SSB_${author}
|
TO.SSB_${author}
|
||||||
|
|
|
@ -51,6 +51,7 @@ checkonenode()
|
||||||
}
|
}
|
||||||
|
|
||||||
# Temp dir where results are stored
|
# Temp dir where results are stored
|
||||||
|
rm -Rf /tmp/zen/gnodewatch
|
||||||
DIR=/tmp/zen/gnodewatch
|
DIR=/tmp/zen/gnodewatch
|
||||||
export DIR
|
export DIR
|
||||||
mkdir -p $DIR/chains
|
mkdir -p $DIR/chains
|
||||||
|
|
Loading…
Reference in New Issue