ipfs autostart

This commit is contained in:
qo-op 2020-12-14 00:13:39 +01:00
parent 495fdf3312
commit 1a9fa122a0
1 changed files with 18 additions and 10 deletions

View File

@ -1,28 +1,30 @@
#!/bin/bash
{
# Check requirements
echo "AstrXbian installer"
sudo apt update
sudo apt install git fail2ban curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
pip3 install cryptography Ed25519 base58 google protobuf
# pip3 install silkaj --user
# git clone astrXbian
mkdir ~/.zen
cd ~/.zen
git clone https://git.p2p.legal/axiom-team/astrXbian.git
# IPFS install
echo "AstrXbian installer"
###
echo "IPFS Swarm Layer"
########################################################################
echo "Install .kodi default config"
cp -Rf ~/.zen/astrXbian/.install/.kodi ~/
########################################################################
echo "Install IPFS Swarm Layer"
# Full automatic (you trust this git depot)
~/.zen/astrXbian/.install/ipfs_alone.sh || exit 1
########################################################################
echo "Setup jaklis Cesium communication tool"
cd ~/.zen/astrXbian/zen/jaklis
./setup.sh
########################################################################
echo "Setup AstrXbian"
~/.zen/astrXbian/ISOconfig.sh
cd ~/.zen/astrXbian/
./ISOconfig.sh
## ERRORS TODO ##
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
@ -31,9 +33,15 @@ cd ~/.zen/astrXbian/
sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
##
echo "enable ipfs service autostart"
cd /etc/rc2.d && sudo ln -s ../init.d/ipfs S02ipfs
cd /etc/rc6.d && sudo ln -s ../init.d/ipfs K01ipfs
sudo ipfs restart
sudo fail2ban restart
## TODO add ipfs service with xbian-config
echo "Installation complete !! Please enable ipfs service autostart"
echo "Installation complete !!"
}