From c8b3ec959b11444f3e19f99c56c34c47a9300cdb Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 15 Mar 2020 00:33:07 +0100 Subject: [PATCH] fix --- install.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/install.sh b/install.sh index ce3425f..4faf9df 100755 --- a/install.sh +++ b/install.sh @@ -24,6 +24,57 @@ if [[ ! $(which silkaj) ]]; then echo 'PATH=$PATH:.local/bin' >> ~/.bashrc && source ~/.bashrc fi +# Install ScuttleButt + +if [[ ! $(which sbot) ]]; then + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash + source ~/.bashrc + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + nvm install --lts + sudo apt install libtool autoconf -y + npm install sodium-native ssb-backlinks + sudo npm install -g ssb-server + + echo "Adresse DNS de votre Pub SSB? hostname.yourdomain.tld" + read EXTERNAL + + mkdir -p ~/.ssb + cat > ~/.ssb/config < ~/run-ssb-PUB_$EXTERNAL.sh <