Skip to content

Commit a31a282

Browse files
Do not touch sshd's service when install/upgrade/remove update-motd
Closes: SIM:KAROO-1269
1 parent d49dda8 commit a31a282

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SPECS/update-motd.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ elif [ "$1" = "2" ]; then
5252
ln -snf /var/lib/update-motd/motd /etc/motd
5353
fi
5454
fi
55-
%systemd_post update-motd.service sshd.socket
55+
%systemd_post update-motd.service
5656

5757
%preun
58-
%systemd_preun update-motd.service sshd.socket
58+
%systemd_preun update-motd.service
5959

6060
%postun
6161
systemctl daemon-reload >/dev/null 2>&1 || :
6262
if [ $1 -ge 1 ] ; then
6363
# 1 = Package upgrade, not uninstall
64-
systemctl try-restart update-motd.service sshd.socket --no-block >/dev/null 2>&1 || :
64+
systemctl try-restart update-motd.service --no-block >/dev/null 2>&1 || :
6565
fi
6666

6767

0 commit comments

Comments
 (0)