fix(script): sudo
Without sudo an unprivileged user cannot always see all lsof library changes.
This commit is contained in:
parent
617ee0c051
commit
4cd16bb4b1
@ -8,7 +8,7 @@ User=build
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
IgnoreSIGPIPE=no
|
IgnoreSIGPIPE=no
|
||||||
ExecStart=/usr/bin/paru -Syu --noconfirm
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user