#!/usr/bin/env sh set -eu install -d /usr/local/lib/nexafabric /usr/local/bin /etc/nexafabric install -m 0755 agent/nexafabric_agent.py /usr/local/lib/nexafabric/nexafabric_agent.py cat >/usr/local/bin/nexafabric-agent <<'EOF' #!/usr/bin/env sh exec python3 /usr/local/lib/nexafabric/nexafabric_agent.py EOF chmod 0755 /usr/local/bin/nexafabric-agent install -m 0644 deploy/systemd/nexafabric-agent.service /etc/systemd/system/nexafabric-agent.service systemctl daemon-reload systemctl enable --now nexafabric-agent.service