]> git.rmz.io Git - dotfiles.git/commitdiff
systemd: move checkupdates to systemd services
authorSamir Benmendil <me@rmz.io>
Sun, 30 Oct 2022 20:28:40 +0000 (20:28 +0000)
committerSamir Benmendil <me@rmz.io>
Fri, 13 Jan 2023 00:23:17 +0000 (00:23 +0000)
It makes sense to run them as a system service, they require root to
download the packages and the actual download command may change making
it hard to configure in sudoers.

systemd/system/checkupdates.service [moved from systemd/user/checkupdates.service with 56% similarity]
systemd/system/checkupdates.timer [moved from systemd/user/checkupdates.timer with 100% similarity]

similarity index 56%
rename from systemd/user/checkupdates.service
rename to systemd/system/checkupdates.service
index d3788df7108e9d1c0d324d4c6dcb0383fe8af52b..5cabb6adde309306780d88da4192115eb2b24519 100644 (file)
@@ -1,7 +1,3 @@
-# Requires following line in sudoers allowing users in wheel 
-# to download packages without password
-# %wheel ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sw --noconfirm * --dbpath *
-
 [Unit]
 Description=Check pacman updates and dowload packages to cache
 After=network-online.target