diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 21:10:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 21:10:34 +0300 |
commit | 9134da04883fb17a8636cddbd457210fa8f5ab38 (patch) | |
tree | 54bc4be56906752103f9054d8b52a2ca6620a878 /lib/system_check/app | |
parent | 8cfe3415e91f4403ded9cc44066a0a459688a609 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/system_check/app')
-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 |