pgtune: audit fixes
This commit is contained in:
parent
51b6fa317b
commit
0cdcc64509
1 changed files with 3 additions and 5 deletions
|
@ -11,13 +11,11 @@ class Pgtune < Formula
|
|||
|
||||
def install
|
||||
# By default, pgtune searches for settings in the directory
|
||||
# where the script is being run from. We replace the default
|
||||
# path with pgtune_share.
|
||||
pgtune_share = share/"pgtune"
|
||||
# where the script is being run from.
|
||||
inreplace "pgtune" do |s|
|
||||
s.sub! /(parser\.add_option\('-S'.*default=).*,/, "\\1\"#{pgtune_share}\","
|
||||
s.sub! /(parser\.add_option\('-S'.*default=).*,/, "\\1\"#{pkgshare}\","
|
||||
end
|
||||
bin.install "pgtune"
|
||||
pgtune_share.install Dir["pg_settings*"]
|
||||
pkgshare.install Dir["pg_settings*"]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue