We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263701b commit 7dd197bCopy full SHA for 7dd197b
srpm/update-motd.spec
@@ -44,6 +44,10 @@ if [ "$1" = "1" ]; then
44
cp -L /etc/motd.rpmsave /var/lib/update-motd/motd
45
fi
46
ln -snf /var/lib/update-motd/motd /etc/motd
47
+elif [ "$1" = "2" ]; then
48
+ if [ -e /etc/motd ] && [ "$(readlink /etc/motd)" = "/var/run/motd" ]; then
49
+ ln -snf /var/lib/update-motd/motd /etc/motd
50
+ fi
51
52
# We don't run update-motd on install because the various update-motd.d scripts
53
# are not installed yet (since their packages will depend on this one).
0 commit comments