orientdb: cleanup 2.2.13 changes.

This commit is contained in:
Mike McQuaid 2016-12-02 09:04:18 +00:00
parent 2f5aba5d70
commit 14bb98563d

View file

@ -6,7 +6,10 @@ class Orientdb < Formula
bottle do
cellar :any_skip_relocation
sha256 "4468d55ad311b318a9b36cf468194797da0314f583433a3ad196e219fb5750a2" => :sierra
sha256 "1281edfb9396ca133d16f1af0faf78d5aaf6c5abe8d42f5e96e36913b4fe44db" => :sierra
sha256 "6ca2f994653590ac3f04ace2ddd369b0f66d5b648c5a151c5c592d7aab5ca982" => :el_capitan
sha256 "356a546861606b228294421816f188ed42f4a05d234ee7e1c96e4ccc8f03ade5" => :yosemite
sha256 "b065a2a8527b54005b7b9b65c395491700a165f56c4c22ab4523018a15816ebc" => :mavericks
end
def install
@ -20,7 +23,6 @@ class Orientdb < Formula
<entry name="server.database.path" value="#{var}/db/orientdb" />
</properties>
EOS
inreplace "#{libexec}/config/orientdb-server-log.properties", "../log", "#{var}/log/orientdb"
inreplace "#{libexec}/bin/orientdb.sh", "../log", "#{var}/log/orientdb"
inreplace "#{libexec}/bin/server.sh", "ORIENTDB_PID=$ORIENTDB_HOME/bin", "ORIENTDB_PID=#{var}/run/orientdb"
@ -52,8 +54,8 @@ class Orientdb < Formula
end
def caveats; <<-EOS.undent
The OrientDB root password was set to 'orientdb'. Follow this to reset it:
http://orientdb.com/docs/2.2/Server-Security.html#restoring-the-servers-user-root
The OrientDB root password was set to 'orientdb'. To reset it:
http://orientdb.com/docs/2.2/Server-Security.html#restoring-the-servers-user-root
EOS
end
@ -62,7 +64,8 @@ class Orientdb < Formula
ENV["ORIENTDB_ROOT_PASSWORD"] = "orientdb"
cp "#{libexec}/config/orientdb-server-config.xml", testpath
inreplace "#{testpath}/orientdb-server-config.xml", "</properties>", " <entry name=\"server.database.path\" value=\"#{testpath}\" />\n </properties>"
inreplace "#{testpath}/orientdb-server-config.xml", "</properties>",
" <entry name=\"server.database.path\" value=\"#{testpath}\" />\n </properties>"
begin
assert_match /OrientDB console v.2.2.13/, pipe_output("#{bin}/orientdb-console \"exit;\"")