summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniele Sluijters <daenney@users.noreply.github.com>2015-04-22 14:02:40 +0200
committerDaniele Sluijters <daenney@users.noreply.github.com>2015-04-22 14:02:40 +0200
commit37bcfc23b2eede4b92b0167f18053460b1d39f75 (patch)
treedbd10fb1435c61b9043e2a829f4eea172a8e6bd4 /templates
parent80c5f0b86683beb569c5755bde5a5a14dde95326 (diff)
unattended_upgrades: Use the _mail hash
Diffstat (limited to 'templates')
-rw-r--r--templates/unattended-upgrades.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/unattended-upgrades.erb b/templates/unattended-upgrades.erb
index 6f94b3d..3eb9230 100644
--- a/templates/unattended-upgrades.erb
+++ b/templates/unattended-upgrades.erb
@@ -33,16 +33,16 @@ Unattended-Upgrade::MinimalSteps "<%= @minimal_steps.to_s %>";
// This will (obviously) make shutdown slower
Unattended-Upgrade::InstallOnShutdown "<%= @install_on_shutdown.to_s %>";
-<%- unless @mail['to'].nil? -%>
+<%- unless @_mail['to'].nil? -%>
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed.
-Unattended-Upgrade::Mail "<%= @mail['to'] %>";
+Unattended-Upgrade::Mail "<%= @_mail['to'] %>";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
-Unattended-Upgrade::MailOnlyOnError "<%= @mail['only_on_error'].to_s %>";
+Unattended-Upgrade::MailOnlyOnError "<%= @_mail['only_on_error'].to_s %>";
<%- end -%>
// Do automatic removal of new unused dependencies after the upgrade