Skip to content

Commit

Permalink
Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
threepistons committed Jan 16, 2024
1 parent e153124 commit bb765c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/classes/cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
it {
is_expected.to contain_file('cronstub').with(
'ensure' => 'file',
'content' => %r{AUTOUPDATE_OPTIONS},
'content' => %r{^/usr/sbin/msktutil --auto-update \$AUTOUPDATE_OPTIONS},
)
}
it { is_expected.to have_file_resource_count(2) }
Expand Down Expand Up @@ -53,7 +53,7 @@
it {
is_expected.to contain_file('cronstub').with(
'ensure' => 'file',
'content' => %r{AUTOUPDATE_OPTIONS},
'content' => %r{^/usr/sbin/msktutil --auto-update \$AUTOUPDATE_OPTIONS},
)
}
it { is_expected.to have_file_resource_count(2) }
Expand Down
2 changes: 1 addition & 1 deletion templates/Debian.cronstub.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ AUTOUPDATE_OPTIONS=""
[ -r /etc/default/msktutil ] && . /etc/default/msktutil

[ "$AUTOUPDATE_ENABLED" = "true" ] || exit 0
exec <%= @msktutilpath %> --auto-update $AUTOUPDATE_OPTIONS
<%= @msktutilpath %> --auto-update $AUTOUPDATE_OPTIONS

0 comments on commit bb765c2

Please sign in to comment.