Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
a1c60793
Commit
a1c60793
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Per user ipfs daemon
parent
391f92a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-ipfs
+16
-18
16 additions, 18 deletions
src/freedombone-app-ipfs
src/freedombone-image-mesh
+0
-17
0 additions, 17 deletions
src/freedombone-image-mesh
with
16 additions
and
35 deletions
src/freedombone-app-ipfs
+
16
−
18
View file @
a1c60793
...
...
@@ -421,24 +421,22 @@ function mesh_install_ipfs_go {
exit
63722
fi
echo
'[Unit]'
>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'Description=IPFS go daemon'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'After=syslog.target'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'After=network.target'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
''
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'[Service]'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'Type=simple'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
"User=
$MY_USERNAME
"
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
"Group=
$MY_USERNAME
"
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
"WorkingDirectory=/home/
$MY_USERNAME
"
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
"ExecStart=
$IPFS_PATH
/ipfs daemon --mount"
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'Restart=on-failure'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
"Environment=
\"
USER=
$MY_USERNAME
\"
\"
HOME=/home/
$MY_USERNAME
\"
\"
GOPATH=/home/go/go
${
GO_VERSION
}
\"
"
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
''
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'[Install]'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
echo
'WantedBy=multi-user.target'
>>
${
rootdir
}
/etc/systemd/system/ipfs.service
chroot
${
rootdir
}
systemctl
enable
ipfs
IPFS_USER_DAEMON
=
${
rootdir
}
/home/
${
MY_USERNAME
}
/.config/systemd/user/ipfs.service
mkdir
-p
$IPFS_USER_DAEMON
echo
'[Unit]'
>
$IPFS_USER_DAEMON
echo
'Description=IPFS go daemon'
>>
$IPFS_USER_DAEMON
echo
''
>>
$IPFS_USER_DAEMON
echo
'[Service]'
>>
$IPFS_USER_DAEMON
echo
"ExecStart=
$IPFS_PATH
/ipfs daemon"
>>
$IPFS_USER_DAEMON
echo
'Restart=on-failure'
>>
$IPFS_USER_DAEMON
echo
'RestartSec=10'
>>
$IPFS_USER_DAEMON
echo
''
>>
$IPFS_USER_DAEMON
echo
'[Install]'
>>
$IPFS_USER_DAEMON
echo
'WantedBy=default.target'
>>
$IPFS_USER_DAEMON
chroot
${
rootdir
}
chown
$MY_USERNAME
:
$MY_USERNAME
/home/
${
MY_USERNAME
}
/.config/systemd/user/ipfs.service
chroot
${
rootdir
}
systemctl
--user
enable
ipfs
}
function
install_ipfs_go
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-image-mesh
+
0
−
17
View file @
a1c60793
...
...
@@ -754,23 +754,6 @@ function setup_ipfs {
return
fi
# directories to mount to
if
[
!
-d
/ipfs
]
;
then
mkdir
/ipfs
mkdir
/ipns
chown
$MY_USERNAME
:
$MY_USERNAME
/ipfs
chown
$MY_USERNAME
:
$MY_USERNAME
/ipns
fi
if
[
-f
/etc/fuse.conf
]
;
then
chown
$MY_USERNAME
:
$MY_USERNAME
/etc/fuse.conf
fi
if
[
-f
/dev/fuse
]
;
then
chown
$MY_USERNAME
:
$MY_USERNAME
/dev/fuse
fi
# TODO in avahi service for ipfs replace IPFS_PEER_ID
echo
'IPFS installed with ID $IPFS_PEER_ID'
>>
$INSTALL_LOG
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment