mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 14:47:17 +08:00
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:
parent
7d5b435b52
commit
914dd1397b
@ -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 &&
|
||||
cat > /etc/cron.daily/logrotate.sh << "EOF" &&
|
||||
<screen role="root" revision="sysv"><userinput>cat > /etc/cron.daily/logrotate.sh << "EOF" &&
|
||||
<literal>#!/bin/bash
|
||||
/usr/sbin/logrotate /etc/logrotate.conf</literal>
|
||||
EOF
|
||||
|
@ -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 > /etc/cron.weekly/update-pciids.sh << "EOF" &&
|
||||
<screen role="nodump" revision="sysv"><userinput>cat > /etc/cron.weekly/update-pciids.sh << "EOF" &&
|
||||
<literal>#!/bin/bash
|
||||
/usr/sbin/update-pciids</literal>
|
||||
EOF
|
||||
|
@ -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 > /etc/cron.weekly/update-usbids.sh << "EOF" &&
|
||||
<screen role="nodump" revision="sysv"><userinput>cat > /etc/cron.weekly/update-usbids.sh << "EOF" &&
|
||||
<literal>#!/bin/bash
|
||||
/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
|
||||
EOF
|
||||
|
@ -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 > /etc/cron.weekly/update-pki.sh << "EOF" &&
|
||||
<screen role="nodump" revision="sysv"><userinput>cat > /etc/cron.weekly/update-pki.sh << "EOF" &&
|
||||
<literal>#!/bin/bash
|
||||
/usr/sbin/make-ca -g</literal>
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user