Correct pg_config failure in eg_db_config.pl
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 26 Aug 2011 17:56:21 +0000 (13:56 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 7 Sep 2011 16:34:08 +0000 (12:34 -0400)
Missing a =s in getopts config means it becomes a 0 or 1, when it should
be a string.

The problem only occurs when you are specifying a particular postgresql
pg_config file (for example, if you have multiple versions of postgresql
installed).

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/support-scripts/eg_db_config.pl

index 7a3c2a8..894f716 100755 (executable)
@@ -194,7 +194,7 @@ GetOptions("create-schema" => \$cschema,
                "build-db-file=s" => \$build_db_sh,
                "pg-contrib-dir=s" => \$pg_contribdir,
                "create-db-sql=s" => \$create_db_sql,
-               "pg-config" => \$pgconfig,
+               "pg-config=s" => \$pgconfig,
                "admin-user=s" => \$admin_user,
                "admin-password=s" => \$admin_pw,
                "service=s" => \@services,