Skip to content

Set initial config perms 0600, it holds secrets #120

Merged
merged 2 commits into from Apr 30, 2012
View
2 lib/earthquake/core.rb
@@ -85,7 +85,7 @@ def load_config
if File.exists?(config[:file])
load config[:file]
else
- File.open(config[:file], 'w')
+ File.open(config[:file], mode: 'w', perm: 0600).close
end
config.update(preferred_config) do |key, cur, new|
Something went wrong with that request. Please try again.