File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# ###############################################################################
4- # Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+ # Copyright 2011-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
55#
66# Licensed under the Apache License, Version 2.0 (the "License"). You may not
77# use this file except in compliance with the License. A copy of the License is
@@ -66,13 +66,7 @@ if [ -d /etc/update-motd.d ]; then
6666 if [ -f /etc/motd.tail ]; then
6767 cat /etc/motd.tail >> $TMPFILE
6868 fi
69- # Only actually do the replacement if there is something in there
70- if [ -s $TMPFILE ]; then
71- # mktemp creates files with only user read-write permissions
72- chmod go+r $TMPFILE
73- mv $TMPFILE /var/lib/update-motd/motd
74- else
75- # Don't leave temp files
76- rm -f $TMPFILE
77- fi
69+ # mktemp creates files with only user read-write permissions
70+ chmod go+r $TMPFILE
71+ mv $TMPFILE /var/lib/update-motd/motd
7872fi
Original file line number Diff line number Diff line change 1- %define _trivial .0
2- %define _buildid .3
31Name: update-motd
4- Version: 2.0
5- Release: 1%{?dist }%{? _trivial }%{? _buildid }
2+ Version: 2.1
3+ Release: 1%{?dist }
64License: ASL 2.0
75Summary: Framework for dynamically generating MOTD
86Group: System Environment/Base
6765%ghost /var/lib/update-motd/motd
6866
6967%changelog
68+ * Wed Mar 15 2023 Stewart Smith <trawets@amazon.com> 2.1
69+ - Replace update-motd motd part even when it's zero sized
70+ - This fixes https://github.com/amazonlinux/amazon-linux-2023/issues/286
71+
72+ * Thu Mar 09 2023 Nikhil Dikshit <nikhildi@amazon.com> 2.0-1.amzn2023.0.3
73+ - Migrated Cron job to Systemd timer
74+ - Trigger update-motd.service after cloud-final.service
75+ - Set RemainAfterExit=no on update-motd so that timer can restart it after exit
76+
77+ * Thu Feb 02 2023 Stewart Smith <trawets@amazon.com> - 2.0-1.amzn2023.0.2
78+ - Mass rebuild for AL2023
79+
80+ * Tue Oct 04 2022 Stewart Smith <trawets@amazon.com> - 2.0-1.amzn2022.0.1
81+ - AL2022 pre-GA mass rebuild
82+
7083* Mon Oct 18 2021 Stewart Smith <trawets@amazon.com> - 2.0-1
7184- Initial build for AL2022
7285
You can’t perform that action at this time.
0 commit comments