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

install -m 0644 /opt/kitchen-display-agent/kitchen-display-agent.service \
  /etc/systemd/system/kitchen-display-agent.service

chmod 0644 /etc/kitchen-display-agent/config.env
chown -R root:root /opt/kitchen-display-agent

systemctl enable kitchen-display-agent
