Skip to content

Commit

Permalink
cassandra: env script cqlsh.py also
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Jul 3, 2016
1 parent 8de26e0 commit c9b02c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/cassandra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ def install

# Make sure tools are available
bin.install Dir[buildpath/"tools/bin/*"]

bin.write_exec_script Dir["#{libexec}/bin/*"]
rm bin/"cqlsh" # Remove existing exec script

rm %W[#{bin}/cqlsh #{bin}/cqlsh.py] # Remove existing exec scripts
(bin/"cqlsh").write_env_script libexec/"bin/cqlsh", :PYTHONPATH => pypath
(bin/"cqlsh.py").write_env_script libexec/"bin/cqlsh.py", :PYTHONPATH => pypath
end

plist_options :manual => "cassandra start"
Expand Down

0 comments on commit c9b02c2

Please sign in to comment.