install correction

This commit is contained in:
qo-op 2020-12-13 20:16:30 +01:00
parent e13dceeb6f
commit ff382855c2
4 changed files with 11 additions and 34 deletions

View File

@ -58,38 +58,12 @@ cd $MY_PATH
echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>" echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>"
sudo ipfs-update install 0.7.0 || err "Install IPFS" sudo ipfs-update install 0.7.0 || err "Install IPFS"
## DEBIAN
echo "CREATE SYSTEMD ipfs SERVICE >>>>>>>>>>>>>>>>>>"
cat > /tmp/ipfs.service <<EOF
[Unit]
Description=IPFS daemon
After=network.target
[Service]
User=_USER_
ExecStart=/usr/local/bin/ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub --enable-gc
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
sudo sed -i "s/_USER_/$USER/g" /etc/systemd/system/ipfs.service
[[ -d ~/.ipfs ]] && sudo chown -R $USER:$USER ~/.ipfs
## Special Xbian init.d config ## Special Xbian init.d config
if [[ $USER == "xbian" && -f ~/.zen/astroport/.install/templates/ipfs/ipfs-initV.sh ]]; then if [[ -f ~/.zen/astrXbian/.install/templates/ipfs/ipfs-initV.sh ]]; then
sudo cp ~/.zen/astroport/.install/templates/ipfs/ipfs-initV.sh /etc/init.d/ipfs sudo cp ~/.zen/astrXbian/.install/templates/ipfs/ipfs-initV.sh /etc/init.d/ipfs
sudo chmod 755 /etc/init.d/ipfs sudo chmod 755 /etc/init.d/ipfs
sudo touch /var/log/ipfs.log && sudo chown xbian /var/log/ipfs.log sudo touch /var/log/ipfs.log && sudo chown xbian /var/log/ipfs.log
sudo service ipfs enable sudo service ipfs enable
else
sudo systemctl daemon-reload || err "Restart IPFS"
sudo systemctl enable ipfs || err "Enable IPFS daemon"
fi fi

View File

@ -1,12 +1,14 @@
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: ipfs daemon # Provides: ipfs
# Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Should-Start: ipfs daemon
# Should-Stop: ipfs daemon
# Short-Description: Starts the ipfs daemon # Short-Description: Starts the ipfs daemon
# Description: Starts the ipfs daemon using the start-stop-daemon # Description: ipfs daemon is managing swarm filesystem
### END INIT INFO ### END INIT INFO
# Author: Dylan Powers <dylan.kyle.powers@gmail.com # Author: Dylan Powers <dylan.kyle.powers@gmail.com
@ -90,7 +92,7 @@ case "$1" in
status) status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;; ;;
restart) restart)
do_stop do_stop
do_start do_start
;; ;;

View File

@ -195,7 +195,8 @@ sudo chattr +i /etc/resolv.conf
# WRITE ~/.zen/ipfs.sync CONFIG (meaning DONE) # WRITE ~/.zen/ipfs.sync CONFIG (meaning DONE)
echo "IPFS_SYNC_DIR=$IPFS_sync_directory" > ~/.zen/ipfs.sync echo "IPFS_SYNC_DIR=$IPFS_sync_directory" > ~/.zen/ipfs.sync
# OTHER LANGUAGE KEYBOARD dpkg-reconfigure keyboard-configuration # RESIZING / partition
# sudo btrfs filesystem resize max /
######################################################################## ########################################################################
echo 'REBOOT NOW...' echo 'REBOOT NOW...'

View File

@ -7,7 +7,7 @@ sudo apt install git curl net-tools libsodium23 libsodium-dev python3-pip python
pip3 install cryptography Ed25519 base58 google protobuf pip3 install cryptography Ed25519 base58 google protobuf
pip3 install silkaj --user pip3 install silkaj --user
gitpath="https://git.p2p.legal/axiom-team/astroport/raw/master" gitpath="https://git.p2p.legal/axiom-team/astrXbian/raw/master"
echo "Add colors ..." echo "Add colors ..."
curl -s $gitpath/.install/export_colors.sh | bash || exit 1 curl -s $gitpath/.install/export_colors.sh | bash || exit 1
@ -18,7 +18,7 @@ curl -s $gitpath/.install/export_colors.sh | bash || exit 1
args="$@" args="$@"
# IPFS install # IPFS install
echo -e "${c_green}Astroport installer echo -e "${c_green}AstrXbian installer
### ###
1. IPFS Swarm Layer$c_" 1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot) # Full automatic (you trust this git depot)