Skip to content

Commit f78ccea

Browse files
committed
Fix cron job per cronie requirements
https://cr.amazon.com/r/3022691/ cr:tjk,jamieand,bcressey,nierzwic,jasg
1 parent 3ff8d4e commit f78ccea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

srpm/cron_update-motd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Delay a random time between 0 and 360 minutes (6 hours) to avoid having all
22
# instances update at the same time.
33
RANDOM_DELAY=360
4-
@daily start --quiet update-motd
4+
@daily root /sbin/start --quiet update-motd

srpm/update-motd.spec

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: update-motd
22
Version: 1.0.1
3-
Release: 2%{?dist}
3+
Release: 3%{?dist}
44
License: ASL 2.0
55
Summary: Framework for dynamically generating MOTD
66
Group: System Environment/Base
@@ -23,10 +23,10 @@ Based on and compatible with the framework implemented Ubuntu.
2323
rm -rf %{buildroot}
2424
install -d %{buildroot}/etc/update-motd.d
2525
install -D -m 0755 %{SOURCE0} %{buildroot}/usr/sbin/update-motd
26-
install -D -m 0755 %{SOURCE1} %{buildroot}/etc/cron.d/update-motd
27-
install -D -m 0444 %{SOURCE2} %{buildroot}/etc/init/update-motd.conf
28-
install -D -m 0444 %{SOURCE3} %{buildroot}/usr/lib/yum-plugins/update-motd.py
29-
install -D -m 0444 %{SOURCE4} %{buildroot}/etc/yum/pluginconf.d/update-motd.conf
26+
install -D -m 0644 %{SOURCE1} %{buildroot}/etc/cron.d/update-motd
27+
install -D -m 0644 %{SOURCE2} %{buildroot}/etc/init/update-motd.conf
28+
install -D -m 0644 %{SOURCE3} %{buildroot}/usr/lib/yum-plugins/update-motd.py
29+
install -D -m 0644 %{SOURCE4} %{buildroot}/etc/yum/pluginconf.d/update-motd.conf
3030
# for %ghost
3131
install -d %{buildroot}/var/lib/update-motd
3232
touch %{buildroot}/var/lib/update-motd/motd

0 commit comments

Comments
 (0)