forked from axiom-team/astrXbian
correction initV
This commit is contained in:
parent
b68607ea21
commit
597354f265
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue