diff --git a/.install/silkaj-php-mysql.sh b/.install/silkaj-php-mysql.sh index 0275e7b..4d3c023 100755 --- a/.install/silkaj-php-mysql.sh +++ b/.install/silkaj-php-mysql.sh @@ -13,16 +13,18 @@ unset err # Basics sudo apt update 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() { 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 }') - 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 silkaj --user || err+="Install Silkaj" + + source .profile ## PATH="$HOME/.local/bin:$PATH" } diff --git a/zen/ssb_SURVEY_contact.sh b/zen/ssb_SURVEY_contact.sh index 7305bb9..3071be9 100755 --- a/zen/ssb_SURVEY_contact.sh +++ b/zen/ssb_SURVEY_contact.sh @@ -107,12 +107,12 @@ http://localhost:8080/ipns/ type="$(file -b --mime-type "$file")" size="$(wc -c < "$file")" -echo " +echo ' ______ _ _ _ ____ __ _ _ _ _ _____ /\ (_ ||_)/ \|_)/ \|_)|__(_\ //\ |_)|\/||/|_\_/ |_)/ \(_ | /--\__) || \\_/| \_/| \| __)\/\//--\| \| ||\|_ | | \_/__) | - -SSB +' +echo "SSB #astroport-swarmkey [$name]($id) TO.SSB_${author} diff --git a/zen/tools/duniter_getnode.sh b/zen/tools/duniter_getnode.sh index 34fc78e..ee64230 100755 --- a/zen/tools/duniter_getnode.sh +++ b/zen/tools/duniter_getnode.sh @@ -51,6 +51,7 @@ checkonenode() } # Temp dir where results are stored +rm -Rf /tmp/zen/gnodewatch DIR=/tmp/zen/gnodewatch export DIR mkdir -p $DIR/chains