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
! `
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) {
......
......@@ -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
......
......@@ -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 "
......@@ -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
\ No newline at end of file
fi
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