diff --git a/update.sh b/update.sh index 6ea05ce..42b54ca 100755 --- a/update.sh +++ b/update.sh @@ -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