自動でaptitudeを使ってセキュリティアップデートをするには
(1)cron-aptのインストール
sudo aptitude install cron-apt
(2)/etc/cron-aptを修正
$ diff config config.org
15c15
< APTCOMMAND=/usr/bin/aptitude
---
> # APTCOMMAND=/usr/bin/aptitude
23c23
< FILTERCTRLM="false"
---
> # FILTERCTRLM="false"
26c26
< export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
---
> # export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
31c31
< RUNSLEEP=3600
---
> # RUNSLEEP=3600
34c34
< ACTIONDIR="/etc/cron-apt/action.d"
---
> # ACTIONDIR="/etc/cron-apt/action.d"
38c38
< ACTIONCONFDIR="/etc/cron-apt/config.d"
---
> # ACTIONCONFDIR="/etc/cron-apt/config.d"
43c43
< MAILMSGDIR="/etc/cron-apt/mailmsg.d"
---
> # MAILMSGDIR="/etc/cron-apt/mailmsg.d"
48c48
< SYSLOGMSGDIR="/etc/cron-apt/syslogmsg.d"
---
> # SYSLOGMSGDIR="/etc/cron-apt/syslogmsg.d"
53c53
< ERRORMSGDIR="/etc/cron-apt/errormsg.d"
---
> # ERRORMSGDIR="/etc/cron-apt/errormsg.d"
58c58
< LOGMSGDIR="/etc/cron-apt/logmsg.d"
---
> # LOGMSGDIR="/etc/cron-apt/logmsg.d"
63c63
< MAILONMSGSDIR="/etc/cron-apt/mailonmsgs"
---
> # MAILONMSGSDIR="/etc/cron-apt/mailonmsgs"
68c68
< SYSLOGONMSGSDIR="/etc/cron-apt/syslogonmsgs"
---
> # SYSLOGONMSGSDIR="/etc/cron-apt/syslogonmsgs"
75c75
< ERROR="/var/log/cron-apt/error"
---
> # ERROR="/var/log/cron-apt/error"
79c79
< TEMP="/var/log/cron-apt/temp"
---
> # TEMP="/var/log/cron-apt/temp"
82c82
< LOG="/var/log/cron-apt/log"
---
> # LOG="/var/log/cron-apt/log"
85c85
< MAIL="/var/log/cron-apt/mail"
---
> # MAIL="/var/log/cron-apt/mail"
88c88
< MAILTO="user"
---
> # MAILTO="root"
97c97
< MAILON="error"
---
> # MAILON="error"
105c105
< SYSLOGON="upgrade"
---
> # SYSLOGON="upgrade"
(3)/etc/cron-apt/action.d/3-download
< dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
> dist-upgrade -y -o APT::Get::Show-Upgraded=true
2008年4月27日日曜日
cron-apt
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿