take care of IPFS setup & systemd

This commit is contained in:
fred 2022-11-12 15:15:12 +01:00
parent b2e2c85860
commit d3f6415ff8
1 changed files with 2 additions and 0 deletions

View File

@ -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