github.com/ethersphere/bee/v2@v2.2.0/packaging/rpm/post (about)

     1  if [ $1 -eq 1 ] ; then
     2      # initial installation
     3      if [ ! -f /var/lib/bee/keys/libp2p.key ]; then
     4          /usr/bin/bee init --config /etc/bee/bee.yaml >/dev/null 2>&1
     5          chown -R bee:bee /var/lib/bee
     6      fi
     7      systemctl --no-reload preset bee.service &>/dev/null || :
     8      systemctl --no-reload enable bee.service &>/dev/null || :
     9      echo "
    10  Logs:   journalctl -f -u bee.service
    11  Config: /etc/bee/bee.yaml
    12  
    13  Bee requires a Gnosis Chain RPC endpoint to function. By default this is expected to be found at ws://localhost:8546.
    14  
    15  Please see https://docs.ethswarm.org/docs/installation/install for more details on how to configure your node.
    16  
    17  After you finish configuration run 'sudo bee-get-addr' and fund your node with XDAI, and also XBZZ if so desired.
    18      "
    19  fi
    20  
    21  if [ $1 -eq 2 ] ; then
    22      # upgrade
    23      systemctl --no-reload start bee.service &>/dev/null || :
    24  fi