openvpn: remove unnecessary loop
This commit is contained in:
parent
673e0540f2
commit
c01c37278a
2 changed files with 5 additions and 10 deletions
|
@ -67,10 +67,8 @@ class AppscaleTools < Formula
|
|||
resource('httplib2').stage { system "python", *install_args }
|
||||
resource('python-gflags').stage { system "python", *install_args }
|
||||
|
||||
Dir['bin/appscale*'].each do |command_file|
|
||||
inreplace command_file do |s|
|
||||
s.gsub! /^lib = os.*/, "lib = '#{libexec}'"
|
||||
end
|
||||
inreplace Dir["bin/appscale*"] do |s|
|
||||
s.gsub! /^lib = os.*/, "lib = '#{libexec}'"
|
||||
end
|
||||
|
||||
prefix.install 'bin', 'templates', 'LICENSE', 'README.md'
|
||||
|
|
|
@ -27,14 +27,11 @@ class Openvpn < Formula
|
|||
system "make install"
|
||||
|
||||
# Adjust sample file paths
|
||||
inreplace ["sample/sample-config-files/openvpn-startup.sh"] do |s|
|
||||
s.gsub! "/etc/openvpn", etc+'openvpn'
|
||||
end
|
||||
inreplace "sample/sample-config-files/openvpn-startup.sh",
|
||||
"/etc/openvpn", "#{etc}/openvpn"
|
||||
|
||||
# Install sample files
|
||||
Dir['sample/sample-*'].each do |d|
|
||||
(share + 'doc/openvpn' + d).install Dir[d+'/*']
|
||||
end
|
||||
(doc/"sample").install Dir["sample/sample-*"]
|
||||
|
||||
# Create etc & var paths
|
||||
(etc + 'openvpn').mkpath
|
||||
|
|
Loading…
Reference in a new issue