Files
unpoller-unpoller-4/scripts/after-install.sh
2019-06-23 02:09:46 -07:00

12 lines
315 B
Bash
Executable File

#!/bin/bash
# This file is used by deb and rpm packages.
# FPM adds this as the after-install script.
if [ -x "/bin/systemctl" ]; then
# Reload and restart - this starts the application as user nobody.
/bin/systemctl daemon-reload
/bin/systemctl enable unifi-poller
/bin/systemctl restart unifi-poller
fi