post_install() { if ! getent passwd beehive > /dev/null; then useradd -r beehive fi mkdir -p /etc/beehive chown -R beehive: /etc/beehive echo "To run a reverse proxy setup, please modify the systemd unit and add the following arguments to the ExecStart line:" echo " -bind \":8181\" -canonicalurl \"http://beehive.myhost.com\"" } pre_upgrade() { systemctl stop beehive.service } post_upgrade() { systemctl start beehive.service }