File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
- start --quiet update-motd
1
+ # Delay a random time between 0 and 360 minutes (6 hours) to avoid having all
2
+ # instances update at the same time.
3
+ RANDOM_DELAY=360
4
+ @daily start --quiet update-motd
Original file line number Diff line number Diff line change 1
1
Name: update-motd
2
2
Version: 1.0.1
3
- Release: 1 %{?dist }
3
+ Release: 2 %{?dist }
4
4
License: ASL 2.0
5
5
Summary: Framework for dynamically generating MOTD
6
6
Group: System Environment/Base
@@ -16,14 +16,14 @@ Source3: yum_update-motd.py
16
16
Source4: yum_update-motd.conf
17
17
18
18
%description
19
- Framework and scripts for producing a dynamically generated Message Of The Day.
19
+ Framework and scripts for producing a dynamically generated Message Of The Day.
20
20
Based on and compatible with the framework implemented Ubuntu.
21
21
22
22
%install
23
23
rm -rf %{buildroot }
24
24
install -d %{buildroot }/etc/update-motd.d
25
25
install -D -m 0755 %{SOURCE0 } %{buildroot }/usr/sbin/update-motd
26
- install -D -m 0755 %{SOURCE1 } %{buildroot }/etc/cron.daily /update-motd
26
+ install -D -m 0755 %{SOURCE1 } %{buildroot }/etc/cron.d /update-motd
27
27
install -D -m 0444 %{SOURCE2 } %{buildroot }/etc/init/update-motd.conf
28
28
install -D -m 0444 %{SOURCE3 } %{buildroot }/usr/lib/yum-plugins/update-motd.py
29
29
install -D -m 0444 %{SOURCE4 } %{buildroot }/etc/yum/pluginconf.d/update-motd.conf
59
59
%defattr(-,root,root,-)
60
60
%dir /etc/update-motd.d
61
61
%dir /var/lib/update-motd
62
- %config /etc/cron.daily /update-motd
62
+ %config /etc/cron.d /update-motd
63
63
%config /etc/init/update-motd.conf
64
64
%config /etc/yum/pluginconf.d/update-motd.conf
65
65
/usr/sbin/update-motd
You can’t perform that action at this time.
0 commit comments