mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 00:44:09 -04:00
12 lines
315 B
Bash
Executable File
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
|