From: Zbigniew Jędrzejewski-Szmek Date: Thu, 4 Nov 2021 08:49:18 +0000 (+0100) Subject: update-helper: add missing loop over user units X-Git-Tag: v250-rc1~361 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4eba5d8cfaabbd87687c651fcdd06df9e267931;p=thirdparty%2Fsystemd.git update-helper: add missing loop over user units Noticed by Luca. shellcheck doens't catch this, and somehow it was missed in review and testing ;( --- diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index fa35e7ba903..7e007d48065 100755 --- a/src/rpm/systemd-update-helper.in +++ b/src/rpm/systemd-update-helper.in @@ -52,8 +52,10 @@ case "$command" in users=$(systemctl list-units 'user@*' --legend=no | sed -n -r 's/.*user@([0-9]+).service.*/\1/p') for user in $users; do - SYSTEMD_BUS_TIMEOUT={{UPDATE_HELPER_USER_TIMEOUT}} \ - systemctl --user -M "$user@" set-property "$unit" Markers=+needs-restart & + for unit in "$@"; do + SYSTEMD_BUS_TIMEOUT={{UPDATE_HELPER_USER_TIMEOUT}} \ + systemctl --user -M "$user@" set-property "$unit" Markers=+needs-restart & + done done wait ;;