Commit b5a1ea43 authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

fix chown after init (#1483)

parent bf76540e
...@@ -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
......
...@@ -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 || :
......
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