diff options
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/app/authorized_keys_permission_check.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/system_check/app/authorized_keys_permission_check.rb b/lib/system_check/app/authorized_keys_permission_check.rb index 1246a6875a3..9b81812de74 100644 --- a/lib/system_check/app/authorized_keys_permission_check.rb +++ b/lib/system_check/app/authorized_keys_permission_check.rb @@ -19,11 +19,12 @@ module SystemCheck end def show_error - try_fixing_it([ - "sudo chmod 700 #{File.dirname(authorized_keys.file)}", - "touch #{authorized_keys.file}", - "sudo chmod 600 #{authorized_keys.file}" - ]) + try_fixing_it( + [ + "sudo chmod 700 #{File.dirname(authorized_keys.file)}", + "touch #{authorized_keys.file}", + "sudo chmod 600 #{authorized_keys.file}" + ]) fix_and_rerun end |