File: install

package info (click to toggle)
gitlab-shell 14.35.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,652 kB
  • sloc: ruby: 1,129; makefile: 583; sql: 391; sh: 384
file content (24 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env ruby

# Load ROOT_PATH and access the minimum necessary config file
require_relative '../support/gitlab_config'

config = GitlabConfig.new
key_dir = File.dirname("#{config.auth_file}")

commands = [
  %W(mkdir -p #{key_dir}),
  %W(chmod 700 #{key_dir}),
]

commands.each do |cmd|
  print "#{cmd.join(' ')}: "
  if system(*cmd)
    puts 'OK'
  else
    puts 'Failed'
    abort "#{$PROGRAM_NAME} failed"
  end
end

exit