fix location

This commit is contained in:
Cody Lee 2022-12-04 09:02:40 -06:00
parent e2f62a8526
commit fcaf4958fe
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -286,7 +286,7 @@ nfpms:
# systemd service
- src: init/systemd/unpoller.service
dst: /etc/systemd/service/unpoller.service
dst: /etc/systemd/system/unpoller.service
type: config
# freebsd rc service

View File

@ -12,7 +12,7 @@ fi
cleanup() {
# This is where you remove files that were not needed on this platform / system
if [ "${use_systemctl}" = "False" ]; then
rm -f /etc/systemd/service/unpoller.service
rm -f /etc/systemd/system/unpoller.service
else
rm -f /etc/chkconfig/unpoller
rm -f /etc/init.d/unpoller
@ -51,7 +51,7 @@ cleanInstall() {
# even if you want your service to run as non root.
if [] "${systemd_version}" -lt 231 ]; then
printf "\033[31m systemd version %s is less then 231, fixing the service file \033[0m\n" "${systemd_version}"
sed -i "s/=+/=/g" /etc/systemd/service/unpoller.service
sed -i "s/=+/=/g" /etc/systemd/system/unpoller.service
fi
printf "\033[32m Reload the service unit from disk\033[0m\n"
systemctl daemon-reload ||: