Without sudo an unprivileged user cannot always see all lsof library changes.
15 lines
355 B
Desktop File
15 lines
355 B
Desktop File
[Unit]
|
|
Description=Update and restart OS
|
|
Requires=network.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
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'"'"' && sudo reboot || true'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|