
According to analysis from Saul in task 26455, we can remove motd patch for crontabs and then use RPM instead of SRPM for it. We also need to remove usage of --without-progname in utilities/ update-motd/files/motd-update. Story: 2003765 Task: 28181 & 28182 Depends-on: https://review.openstack.org/#/c/623385/ Change-Id: I4be7d47ee77ac07eb24f5b88cd707c29b595df7a Signed-off-by: zhipengl <zhipengs.liu@intel.com>
16 lines
295 B
Bash
16 lines
295 B
Bash
#!/bin/bash
|
|
|
|
#
|
|
# Copyright (c) 2014, 2016 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
MOTD_FILE=${MOTD_FILE:-"/etc/motd"}
|
|
MOTD_PATH=${MOTD_PATH:-"/etc/motd.d"}
|
|
MOTD_TAG=${MOTD_TAG:-"motd-update"}
|
|
|
|
if [ -d ${MOTD_PATH} ]; then
|
|
run-parts ${MOTD_PATH} 1>${MOTD_FILE}
|
|
fi
|