Skip to content

Commit

Permalink
check and save splitted
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 7, 2020
1 parent a59af6c commit 6c0ebb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/Security.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,10 @@ def write_kernel_settings
written = true
end
end
sysctl_config.save if written

if written && !sysctl_config.conflict?
sysctl_config.save
end

# enable sysrq?
sysrq = Integer(@Settings.fetch("kernel.sysrq", "0")) rescue nil
Expand Down

0 comments on commit 6c0ebb7

Please sign in to comment.