From 1c0c2a303188cca750c36214ad469170b6f91025 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Sep 2016 17:10:17 +0100 Subject: [PATCH] Start the ipfs daemon --- src/freedombone-app-ipfs | 2 -- src/freedombone-image-mesh | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-ipfs b/src/freedombone-app-ipfs index 1441d0c5..a2e77908 100755 --- a/src/freedombone-app-ipfs +++ b/src/freedombone-app-ipfs @@ -435,8 +435,6 @@ function mesh_install_ipfs_go { echo '[Install]' >> $IPFS_USER_DAEMON echo 'WantedBy=default.target' >> $IPFS_USER_DAEMON chroot ${rootdir} chown -R $MY_USERNAME:$MY_USERNAME /home/${MY_USERNAME}/.config - - chroot ${rootdir} systemctl --user enable ipfs } function install_ipfs_go { diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index 665522c9..89e364d4 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -726,6 +726,9 @@ function setup_ipfs { IPFS_KEY_LENGTH=2048 IPFS_COMMAND=$IPFS_PATH/ipfs + su -c "systemctl --user enable ipfs" - $MY_USERNAME + su -c "systemctl --user start ipfs" - $MY_USERNAME + if [ -d /home/$MY_USERNAME/.ipfs ]; then rm -rf /home/$MY_USERNAME/.ipfs fi