Commit dd6aa73a authored by Attila Lendvai's avatar Attila Lendvai Committed by GitHub

bee.service: make EnvironmentFile optional (#1115)

parent 96e1d75d
...@@ -107,7 +107,7 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz ...@@ -107,7 +107,7 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz
! ` ! `
fmt.Println(beeASCII) fmt.Println(beeASCII)
logger.Debugf("version: %v", bee.Version) logger.Infof("version: %v", bee.Version)
debugAPIAddr := c.config.GetString(optionNameDebugAPIAddr) debugAPIAddr := c.config.GetString(optionNameDebugAPIAddr)
if !c.config.GetBool(optionNameDebugAPIEnable) { if !c.config.GetBool(optionNameDebugAPIEnable) {
......
...@@ -4,7 +4,7 @@ Documentation=https://docs.ethswarm.org ...@@ -4,7 +4,7 @@ Documentation=https://docs.ethswarm.org
After=network.target After=network.target
[Service] [Service]
EnvironmentFile=/etc/default/bee EnvironmentFile=-/etc/default/bee
NoNewPrivileges=true NoNewPrivileges=true
User=bee User=bee
Group=bee Group=bee
......
...@@ -4,7 +4,7 @@ if [ "$1" = "configure" ]; then ...@@ -4,7 +4,7 @@ if [ "$1" = "configure" ]; then
if [ -z "$2" ]; then if [ -z "$2" ]; 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
chown -R bee:bee /var/lib/bee/keys chown -R bee:bee /var/lib/bee/keys
fi fi
echo " echo "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment