Skip to content

Commit 2463c1d

Browse files
committed
Copy the current motd on upgrade
1 parent 7dd197b commit 2463c1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

srpm/update-motd.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ if [ "$1" = "1" ]; then
4646
ln -snf /var/lib/update-motd/motd /etc/motd
4747
elif [ "$1" = "2" ]; then
4848
if [ -e /etc/motd ] && [ "$(readlink /etc/motd)" = "/var/run/motd" ]; then
49+
# Copy the current motd
50+
cp -L /etc/motd /var/lib/update-motd/motd
4951
ln -snf /var/lib/update-motd/motd /etc/motd
5052
fi
5153
fi

0 commit comments

Comments
 (0)