forked from STI/Astroport.ONE
take care of IPFS setup & systemd
This commit is contained in:
parent
b2e2c85860
commit
d3f6415ff8
|
@ -31,6 +31,8 @@ MACHINE_TYPE=`uname -m`
|
|||
# CHECK if daemon is already running
|
||||
if [[ $YOU ]]; then
|
||||
echo "ipfs daemon already running...! Run by $YOU $MACHINE_TYPE"
|
||||
[[ $YOU == $USER]] && echo "Stopping ipfs daemon" && killall ipfs \
|
||||
|| (echo "ERROR $YOU is running ipfs, must be $USER" && exit 1)
|
||||
else
|
||||
# INIT ipfs
|
||||
if [[ ! -d ~/.ipfs ]]; then
|
||||
|
|
Loading…
Reference in New Issue