fix(script): sudo
Without sudo an unprivileged user cannot always see all lsof library changes.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user