make all installations of files inside /etc/cron.{weekly,daily} consistent

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23075 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2020-05-05 04:23:14 +00:00
parent 7d5b435b52
commit 914dd1397b
4 changed files with 5 additions and 6 deletions

View File

@ -246,8 +246,7 @@ chmod -v 0644 /etc/logrotate.d/example.log</userinput></screen>
(local time):</phrase>
</para>
<screen role="root" revision="sysv"><userinput>install -vdm 754 /etc/cron.daily &amp;&amp;
cat &gt; /etc/cron.daily/logrotate.sh &lt;&lt; "EOF" &amp;&amp;
<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.daily/logrotate.sh &lt;&lt; "EOF" &amp;&amp;
<literal>#!/bin/bash
/usr/sbin/logrotate /etc/logrotate.conf</literal>
EOF

View File

@ -158,7 +158,7 @@ chmod -v 755 /usr/lib/libpci.so</userinput></screen>
at 2:30 A.M. (local time):</phrase>
</para>
<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
<literal>#!/bin/bash
/usr/sbin/update-pciids</literal>
EOF

View File

@ -176,7 +176,7 @@ wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></
at 2:30 A.M. (local time):</phrase>
</para>
<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-usbids.sh &lt;&lt; "EOF" &amp;&amp;
<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-usbids.sh &lt;&lt; "EOF" &amp;&amp;
<literal>#!/bin/bash
/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
EOF

View File

@ -155,14 +155,14 @@ install -vdm755 /etc/ssl/local</userinput></screen>
<filename>/usr/lib/systemd/system/update-pki.timer</filename> that, if
enabled, will check for updates weekly.</phrase><phrase
revision="sysv">If you've installed <xref linkend="fcron"/> and
completed the section on periodic jobs, execute</phrase><phrase
completed the section on periodic jobs, execute</phrase> <phrase
revision="systemd">Execute</phrase> the following commands, as the
<systemitem class="username">root</systemitem> user, to <phrase
revision="sysv">create a weekly cron job:</phrase><phrase
revision="systemd">enable the systemd timer:</phrase>
</para>
<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pki.sh &lt;&lt; "EOF" &amp;&amp;
<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pki.sh &lt;&lt; "EOF" &amp;&amp;
<literal>#!/bin/bash
/usr/sbin/make-ca -g</literal>
EOF