A few tweaks.

This commit is contained in:
David Newhall II
2019-05-30 22:24:54 -07:00
parent 4eddb527c8
commit cbbaaa4dcc
4 changed files with 11 additions and 7 deletions
+1
View File
@@ -3,4 +3,5 @@
# This file is used by rpm and deb packages. FPM use.
systemctl daemon-reload
systemctl enable unifi-poller
systemctl restart unifi-poller
+4 -2
View File
@@ -29,6 +29,8 @@ fi
# Making systemd happy by telling it to reload.
if [ -x /bin/systemctl ]; then
/bin/systemctl --system daemon-reload
/bin/systemctl start unifi-poller
/bin/systemctl enable unifi-poller
fi
echo "Installation Complete. Edit the config file @ /usr/local/etc/${BINARY}/up.conf"
@@ -36,7 +38,7 @@ echo "Then start the daemon with:"
if [ -d ~/Library/LaunchAgents ]; then
echo " launchctl load ~/Library/LaunchAgents/com.github.davidnewhall.${BINARY}.plist"
fi
if [ -d /etc/systemd/system ]; then
echo " sudo /bin/systemctl start ${BINARY}"
if [ -x /bin/systemctl ]; then
echo " sudo /bin/systemctl restart ${BINARY}"
fi
echo "Examine the log file at: /usr/local/var/log/${BINARY}.log (logs may go elsewhere on linux, check syslog)"
+2 -1
View File
@@ -10,7 +10,8 @@ echo "Uninstall unifi-poller. You may need sudo on Linux. Do not use sudo on mac
# Stopping the daemon
if [ -x /bin/systemctl ]; then
/bin/systemctl stop ${BINARY}
/bin/systemctl disable ${BINARY}
/bin/systemctl stop ${BINARY}
fi
if [ -x /bin/launchctl ] && [ -f ~/Library/LaunchAgents/com.github.davidnewhall.${BINARY}.plist ]; then