From 5847fd26445ea45abcf5fca7044b2ee1a0888191 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sun, 20 Mar 2016 22:54:51 +0100 Subject: Add parameter to control reboot time --- templates/unattended-upgrades.erb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates') diff --git a/templates/unattended-upgrades.erb b/templates/unattended-upgrades.erb index c73d58c..a87ff31 100644 --- a/templates/unattended-upgrades.erb +++ b/templates/unattended-upgrades.erb @@ -55,6 +55,11 @@ Unattended-Upgrade::Remove-Unused-Dependencies "<%= @_auto['remove'].to_s %>"; // if the file /var/run/reboot-required is found after the upgrade Unattended-Upgrade::Automatic-Reboot "<%= @_auto['reboot'].to_s %>"; +// If automatic reboot is enabled and needed, reboot at the specific +// time instead of immediately +// Default: "now" +Unattended-Upgrade::Automatic-Reboot-Time "<%= @_auto['reboot_time'].to_s %>"; + <%- unless @dl_limit.nil? -%> // Use apt bandwidth limit feature, this example limits the download // speed to 70kb/sec -- cgit v1.2.3