Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
b5a1ea43
Unverified
Commit
b5a1ea43
authored
Mar 25, 2021
by
Ivan Vandot
Committed by
GitHub
Mar 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix chown after init (#1483)
parent
bf76540e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
postinst
packaging/deb/postinst
+1
-1
post
packaging/rpm/post
+1
-1
No files found.
packaging/deb/postinst
View file @
b5a1ea43
...
@@ -5,7 +5,7 @@ if [ "$1" = "configure" ]; then
...
@@ -5,7 +5,7 @@ if [ "$1" = "configure" ]; then
# initial installation
# initial installation
if
[
!
-f
/var/lib/bee/keys/libp2p.key
]
;
then
if
[
!
-f
/var/lib/bee/keys/libp2p.key
]
;
then
/usr/bin/bee init
--config
/etc/bee/bee.yaml
>
/dev/null
/usr/bin/bee init
--config
/etc/bee/bee.yaml
>
/dev/null
chown
-R
bee:bee /var/lib/bee
/keys
chown
-R
bee:bee /var/lib/bee
fi
fi
echo
"
echo
"
Logs: journalctl -f -u bee.service
Logs: journalctl -f -u bee.service
...
...
packaging/rpm/post
View file @
b5a1ea43
...
@@ -2,7 +2,7 @@ if [ $1 -eq 1 ] ; then
...
@@ -2,7 +2,7 @@ if [ $1 -eq 1 ] ; then
# initial installation
# initial installation
if [ ! -f /var/lib/bee/keys/libp2p.key ]; then
if [ ! -f /var/lib/bee/keys/libp2p.key ]; then
/usr/bin/bee init --config /etc/bee/bee.yaml >/dev/null 2>&1
/usr/bin/bee init --config /etc/bee/bee.yaml >/dev/null 2>&1
chown -R bee:bee /var/lib/bee
/keys
chown -R bee:bee /var/lib/bee
fi
fi
systemctl --no-reload preset bee.service &>/dev/null || :
systemctl --no-reload preset bee.service &>/dev/null || :
systemctl --no-reload enable bee.service &>/dev/null || :
systemctl --no-reload enable bee.service &>/dev/null || :
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment