auto install ipfs for amd64

This commit is contained in:
fred 2022-11-25 20:58:43 +01:00
parent a06f6ced06
commit abca8a423b
2 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,9 @@ start=`date +%s`
[[ ! $(which ipfs) ]] \
&& echo "=== Installez IPFS KUBO puis relancez Install ===" \
&& echo "bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux-amd64.install.sh)" \
&& exit 1
&& [[ $(uname -p) == "x86_64" ]] \
&& bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux-amd64.install.sh)
#### GIT CLONE ###############################################################
[[ ! $(which git) ]] && sudo apt install -y git
@ -156,7 +158,7 @@ echo "=== SETUP IPFS SYSTEM"
#### SETUP JAKLIS ###############################################################
echo "=== SETUP jaklis"
cd $MY_PATH/tools/jaklis
cd ~/.zen/Astroport.ONE/tools/jaklis
sudo ./setup.sh
## XBIAN fail2ban ERROR correction ##
@ -209,7 +211,7 @@ echo '${TYPE};${MEDIAID};${YEAR};${TITLE};${SAISON};${GENRES};_IPNSKEY_;${RES};/
echo "#############################################"
### ADD 20h12.sh CRON ###############
$MY_PATH/tools/cron_VRFY.sh ON
~/.zen/Astroport.ONE/tools/cron_VRFY.sh ON
########################################################################
# SUDO permissions

View File

@ -31,7 +31,7 @@ MACHINE_TYPE=`uname -m`
# CHECK if daemon is already running
if [[ $YOU ]]; then
echo "ipfs daemon already running...! Run by $YOU $MACHINE_TYPE"
[[ $YOU == $USER]] && echo "Stopping ipfs daemon" && killall ipfs \
[[ $YOU == $USER ]] && echo "Stopping ipfs daemon" && killall ipfs \
|| (echo "ERROR $YOU is running ipfs, must be $USER" && exit 1)
else
# INIT ipfs