Browse Source

initV correction

master
qo-op 1 month ago
parent
commit
b1b9d2b2e8
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      .install/ipfs_alone.sh

+ 6
- 4
.install/ipfs_alone.sh View File

@ -79,15 +79,17 @@ sudo sed -i "s/_USER_/$USER/g" /etc/systemd/system/ipfs.service
[[ -d ~/.ipfs ]] && sudo chown -R $USER:$USER ~/.ipfs
sudo systemctl daemon-reload || err "Restart IPFS"
sudo systemctl enable ipfs || err "Enable IPFS daemon"
## 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
sudo chmod 755 /etc/init.d/ipfs
sudo touch /var/log/ipfs.log && chown xbian /var/log/ipfs.log
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

Loading…
Cancel
Save