16 lines
528 B
Bash
Executable File
16 lines
528 B
Bash
Executable File
#!/bin/sh
|
|
# Installs the thinclient-agent systemd unit.
|
|
#
|
|
# The package itself arrives under /opt/thinclient-agent via includes.chroot and runs
|
|
# on the system interpreter against apt's python3-paho-mqtt, so there is nothing to
|
|
# pip-install and no PEP 668 problem to work around here.
|
|
set -eu
|
|
|
|
install -m 0644 /opt/thinclient-agent/thinclient-agent.service \
|
|
/etc/systemd/system/thinclient-agent.service
|
|
|
|
chmod 0644 /etc/thinclient-agent/config.env
|
|
chown -R root:root /opt/thinclient-agent
|
|
|
|
systemctl enable thinclient-agent
|