bin/install
#!/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