From: Samir Benmendil Date: Sun, 30 Oct 2022 20:28:40 +0000 (+0000) Subject: systemd: move checkupdates to systemd services X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/c6b8950819350ba653e3b272001d417879ca642b systemd: move checkupdates to systemd services 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. --- diff --git a/systemd/user/checkupdates.service b/systemd/system/checkupdates.service similarity index 56% rename from systemd/user/checkupdates.service rename to systemd/system/checkupdates.service index d3788df..5cabb6a 100644 --- a/systemd/user/checkupdates.service +++ b/systemd/system/checkupdates.service @@ -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 diff --git a/systemd/user/checkupdates.timer b/systemd/system/checkupdates.timer similarity index 100% rename from systemd/user/checkupdates.timer rename to systemd/system/checkupdates.timer