Skip to content

Commit

Permalink
bee.service: make EnvironmentFile optional (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-lendvai authored Jan 18, 2021
1 parent 96e1d75 commit dd6aa73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/bee/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz
! `

fmt.Println(beeASCII)
logger.Debugf("version: %v", bee.Version)
logger.Infof("version: %v", bee.Version)

debugAPIAddr := c.config.GetString(optionNameDebugAPIAddr)
if !c.config.GetBool(optionNameDebugAPIEnable) {
Expand Down
2 changes: 1 addition & 1 deletion packaging/bee.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation=https://docs.ethswarm.org
After=network.target

[Service]
EnvironmentFile=/etc/default/bee
EnvironmentFile=-/etc/default/bee
NoNewPrivileges=true
User=bee
Group=bee
Expand Down
4 changes: 2 additions & 2 deletions packaging/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ "$1" = "configure" ]; then
if [ -z "$2" ]; then
# initial installation
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
chown -R bee:bee /var/lib/bee/keys
fi
echo "
Expand Down Expand Up @@ -40,4 +40,4 @@ After you finish configuration run 'sudo bee-get-addr'.
deb-systemd-invoke start bee.service >/dev/null || true
fi
fi
fi
fi

0 comments on commit dd6aa73

Please sign in to comment.