Start the ipfs daemon
This commit is contained in:
parent
e9583d155e
commit
1c0c2a3031
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue