Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 21:10:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 21:10:34 +0300
commit9134da04883fb17a8636cddbd457210fa8f5ab38 (patch)
tree54bc4be56906752103f9054d8b52a2ca6620a878 /lib/system_check/app
parent8cfe3415e91f4403ded9cc44066a0a459688a609 (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.rb11
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