Files
TTSDream/lan-ups/desktop/deploy/linux/postinst
T

13 lines
307 B
Bash

#!/bin/sh
set -eu
[ "${1:-}" = configure ] || exit 0
/usr/lib/lanups/configure-agent
if command -v systemctl >/dev/null; then
systemctl enable lanups-agent.service
if [ -d /run/systemd/system ]; then
systemctl daemon-reload
deb-systemd-invoke restart lanups-agent.service
fi
fi