From 7140334bde6b582b565a0541f765e61c04463b0e Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 24 May 2026 22:59:13 +0200 Subject: [PATCH] feat(systemd): Keep local repo up to date --- arch-linux-update-and-restart.service | 1 + 1 file changed, 1 insertion(+) diff --git a/arch-linux-update-and-restart.service b/arch-linux-update-and-restart.service index 2b84811..20b62f6 100644 --- a/arch-linux-update-and-restart.service +++ b/arch-linux-update-and-restart.service @@ -7,6 +7,7 @@ After=network.target User=build Type=oneshot IgnoreSIGPIPE=no +ExecStartPre=/bin/bash -c 'sudo arch-nspawn /var/cache/paru/chroot/root pacman -Syu --noconfirm' ExecStart=/usr/bin/paru -Syu --noconfirm ExecStartPost=/bin/bash -c 'sudo /usr/local/bin/arch-needs-restart | grep -Piq '"'"'# [^:]+: reboot required'"'"' && sudo reboot || true'