Archived
适配 trixie 版本
This commit is contained in:
+1
-1
@@ -430,7 +430,7 @@ RandomizedDelaySec=0
|
||||
|
||||
设置完成后,重启自动更新定时器并检查其状态,执行以下命令。
|
||||
|
||||
在输出结果中,看到系统自动更新的触发时间为 `02:00` 则表示设置正确。
|
||||
在输出结果中,看到系统自动更新的触发时间为 `12:00` 则表示设置正确。
|
||||
|
||||
```bash
|
||||
## 重启触发器
|
||||
|
||||
@@ -31,6 +31,7 @@ Unattended-Upgrade::Origins-Pattern {
|
||||
"origin=Debian,codename=${distro_codename},label=Debian";
|
||||
"origin=Debian,codename=${distro_codename},label=Debian-Security";
|
||||
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
|
||||
// "o=Debian Backports,n=${distro_codename}-backports,l=Debian Backports";
|
||||
"origin=Tailscale,codename=${distro_codename},label=Tailscale";
|
||||
|
||||
// Archive or Suite based matching:
|
||||
@@ -40,7 +41,7 @@ Unattended-Upgrade::Origins-Pattern {
|
||||
// "o=Debian,a=stable";
|
||||
// "o=Debian,a=stable-updates";
|
||||
// "o=Debian,a=proposed-updates";
|
||||
// "o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
|
||||
// "o=Debian Backports,a=stable-backports,l=Debian Backports";
|
||||
};
|
||||
|
||||
// Python regular expressions, matching packages to exclude from upgrading
|
||||
@@ -73,7 +74,7 @@ Unattended-Upgrade::Package-Blacklist {
|
||||
|
||||
// Split the upgrade into the smallest possible chunks so that
|
||||
// they can be interrupted with SIGTERM. This makes the upgrade
|
||||
// a bit slower but it has the benefit that shutdown while a upgrade
|
||||
// a bit slower but it has the benefit that shutdown while an upgrade
|
||||
// is running is possible (with a small delay)
|
||||
//Unattended-Upgrade::MinimalSteps "true";
|
||||
|
||||
@@ -174,5 +175,5 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
|
||||
Unattended-Upgrade::Automatic-Reboot "true";
|
||||
|
||||
Unattended-Upgrade::Automatic-Reboot-Time "03:00";
|
||||
Unattended-Upgrade::Automatic-Reboot-Time "13:00";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user