fix paths to systemd files

This commit is contained in:
Matthew Saunders Brown 2022-10-21 14:43:49 -07:00
parent 980574bdc1
commit f9bbdeddc2

View File

@ -83,15 +83,15 @@ if ! diff -q libexec/command-not-found-handle /usr/local/libexec/command-not-fou
fi
# check systemd timer for update
if ! diff -q systemd/webalizer.service /usr/lib/systemd/system/webalizer.service ; then
cp systemd/webalizer.service /usr/lib/systemd/system/webalizer.service
chmod 644 /usr/lib/systemd/system/webalizer.service
if ! diff -q systemd/webalizer.service /usr/local/lib/systemd/system/webalizer.service ; then
cp systemd/webalizer.service /usr/local/lib/systemd/system/webalizer.service
chmod 644 /usr/local/lib/systemd/system/webalizer.service
echo "systemd/webalizer.service updated"
echo
fi
if ! diff -q systemd/webalizer.timer /usr/lib/systemd/system/webalizer.timer ; then
cp systemd/webalizer.timer /usr/lib/systemd/system/webalizer.timer
chmod 644 /usr/lib/systemd/system/webalizer.timer
if ! diff -q systemd/webalizer.timer /usr/local/lib/systemd/system/webalizer.timer ; then
cp systemd/webalizer.timer /usr/local/lib/systemd/system/webalizer.timer
chmod 644 /usr/local/lib/systemd/system/webalizer.timer
echo "systemd/webalizer.timer updated"
echo
fi