correction initV

This commit is contained in:
qo-op 2020-12-12 02:20:56 +01:00
parent b68607ea21
commit 597354f265
1 changed files with 8 additions and 6 deletions

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/astrXbian/.install/templates/ipfs/ipfs-initV.sh ]]; then
sudo cp ~/.zen/astrXbian/.install/templates/ipfs/ipfs-initV.sh /etc/init.d/ipfs
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