SmartestHome/hosts/touch-panel/live-build/config/hooks/normal/0400-touchpanel-agent.hook....

15 lines
558 B
Bash
Executable File

#!/bin/sh
# Installs the touchpanel-agent systemd unit. Identical logic to hosts/thin-client's
# 0700-thinclient-agent.hook.chroot — the package arrives under /opt/touchpanel-agent
# via includes.chroot and runs on the system interpreter against apt's
# python3-paho-mqtt, so there is nothing to pip-install here.
set -eu
install -m 0644 /opt/touchpanel-agent/touchpanel-agent.service \
/etc/systemd/system/touchpanel-agent.service
chmod 0644 /etc/touchpanel-agent/config.env
chown -R root:root /opt/touchpanel-agent
systemctl enable touchpanel-agent