From 4cd16bb4b1ef5ec3dea6af99e32f74d2bc19af6d Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 25 Feb 2025 05:43:41 +0100 Subject: [PATCH] fix(script): sudo Without sudo an unprivileged user cannot always see all lsof library changes. --- arch-linux-update-and-restart.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-linux-update-and-restart.service b/arch-linux-update-and-restart.service index fa214d4..2b84811 100644 --- a/arch-linux-update-and-restart.service +++ b/arch-linux-update-and-restart.service @@ -8,7 +8,7 @@ User=build Type=oneshot IgnoreSIGPIPE=no ExecStart=/usr/bin/paru -Syu --noconfirm -ExecStartPost=/bin/bash -c 'sudo /usr/local/bin/arch-needs-restart | grep -Piq '"'"'# [^:]+: reboot required'"'"' && reboot || true' +ExecStartPost=/bin/bash -c 'sudo /usr/local/bin/arch-needs-restart | grep -Piq '"'"'# [^:]+: reboot required'"'"' && sudo reboot || true' [Install] WantedBy=multi-user.target