Start the ipfs daemon

This commit is contained in:
Bob Mottram 2016-09-03 17:10:17 +01:00
parent e9583d155e
commit 1c0c2a3031
2 changed files with 3 additions and 2 deletions

View File

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

View File

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