File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66## arg 1: the new package version
77post_install() {
8+ systemctl -q --global enable ydotool
89 for user in $(awk -F':' '{ if ($3 >= 1000 && $1 != "nobody") print $1 }' /etc/passwd); do
910 if [ "$(systemctl is-active --user ydotool)" != "active" ];then
1011 sudo -u $user XDG_RUNTIME_DIR=/run/user/$(id -u $user) systemctl --user enable --now ydotool
Original file line number Diff line number Diff line change 55
66## arg 1: the new package version
77post_install() {
8+ systemctl -q --global enable
89 for user in $(awk -F':' '{ if ($3 >= 1000 && $1 != "nobody") print $1 }' /etc/passwd); do
910 if [ "$(systemctl is-active --user ydotool)" != "active" ];then
1011 sudo -u $user XDG_RUNTIME_DIR=/run/user/$(id -u $user) systemctl --user enable --now ydotool
1112 fi
13+ done
1214}
1315
1416## arg 2: the old package version
You can’t perform that action at this time.
0 commit comments