X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/7465a86e03d70ef899c3b5888613a18ef86a22ac..c37db0a41e316515475c2138d1c8f258c0aaf074:/systemd/user/checkupdates.service diff --git a/systemd/user/checkupdates.service b/systemd/user/checkupdates.service new file mode 100644 index 0000000..d3788df --- /dev/null +++ b/systemd/user/checkupdates.service @@ -0,0 +1,13 @@ +# 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 + +[Service] +Type=oneshot +ExecStart=/usr/bin/checkupdates -d +# checkupdates returns 2 when there are no updates +SuccessExitStatus=2