fix(script): sudo

Without sudo an unprivileged user cannot always see all lsof library
changes.
This commit is contained in:
hygienic-books 2025-02-25 05:34:44 +01:00
parent bae0dc09fa
commit 617ee0c051

View File

@ -8,7 +8,7 @@ User=build
Type=oneshot
IgnoreSIGPIPE=no
ExecStart=/usr/bin/paru -Syu --noconfirm
ExecStartPost=/bin/bash -c '/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'"'"' && reboot || true'
[Install]
WantedBy=multi-user.target