github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/packaging/templates/package_scripts/postinst (about)

     1  #!/bin/bash
     2  # This is a postinstallation script so the service can be configured and started when requested
     3  #
     4  sudo adduser --disabled-password --disabled-login --shell /usr/sbin/nologin --quiet --system --no-create-home --home /nonexistent bor
     5  if [ -d "/var/lib/bor" ]
     6  then
     7      echo "Directory /var/lib/bor exists."
     8  else
     9      mkdir -p /var/lib/bor
    10      sudo chown -R bor /var/lib/bor
    11  fi
    12  sudo systemctl daemon-reload