#!/bin/sh
# Installs the door-panel-agent systemd unit. Identical logic to
# hosts/kitchen-display's own 0300-kitchen-display-agent.hook.chroot.
set -eu

install -m 0644 /opt/door-panel-agent/door-panel-agent.service \
  /etc/systemd/system/door-panel-agent.service

chmod 0644 /etc/door-panel-agent/config.env
chown -R root:root /opt/door-panel-agent

systemctl enable door-panel-agent
