forked from axiom-team/astrXbian
install correction
This commit is contained in:
parent
e13dceeb6f
commit
ff382855c2
|
@ -58,38 +58,12 @@ cd $MY_PATH
|
|||
echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||
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
|
||||
if [[ $USER == "xbian" && -f ~/.zen/astroport/.install/templates/ipfs/ipfs-initV.sh ]]; then
|
||||
sudo cp ~/.zen/astroport/.install/templates/ipfs/ipfs-initV.sh /etc/init.d/ipfs
|
||||
if [[ -f ~/.zen/astrXbian/.install/templates/ipfs/ipfs-initV.sh ]]; then
|
||||
sudo cp ~/.zen/astrXbian/.install/templates/ipfs/ipfs-initV.sh /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 service ipfs enable
|
||||
else
|
||||
|
||||
sudo systemctl daemon-reload || err "Restart IPFS"
|
||||
sudo systemctl enable ipfs || err "Enable IPFS daemon"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: ipfs daemon
|
||||
# Provides: ipfs
|
||||
# Required-Start: $local_fs $remote_fs $network $syslog $named
|
||||
# Required-Stop: $local_fs $remote_fs $network $syslog $named
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Should-Start: ipfs daemon
|
||||
# Should-Stop: 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
|
||||
|
||||
# Author: Dylan Powers <dylan.kyle.powers@gmail.com
|
||||
|
@ -90,7 +92,7 @@ case "$1" in
|
|||
status)
|
||||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||
;;
|
||||
restart)
|
||||
restart)
|
||||
do_stop
|
||||
do_start
|
||||
;;
|
||||
|
|
|
@ -195,7 +195,8 @@ sudo chattr +i /etc/resolv.conf
|
|||
# WRITE ~/.zen/ipfs.sync CONFIG (meaning DONE)
|
||||
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...'
|
||||
|
|
|
@ -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 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 ..."
|
||||
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="$@"
|
||||
|
||||
# IPFS install
|
||||
echo -e "${c_green}Astroport installer
|
||||
echo -e "${c_green}AstrXbian installer
|
||||
###
|
||||
1. IPFS Swarm Layer$c_"
|
||||
# Full automatic (you trust this git depot)
|
||||
|
|
Loading…
Reference in New Issue