[postgis-commits] svn - r3046 - branches/1.3/utils
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Oct 2 08:59:41 PDT 2008
Author: pramsey
Date: 2008-10-02 08:59:41 -0700 (Thu, 02 Oct 2008)
New Revision: 3046
Modified:
branches/1.3/utils/postgis_restore.pl
Log:
pass commandline options into commands (#45)
Modified: branches/1.3/utils/postgis_restore.pl
===================================================================
--- branches/1.3/utils/postgis_restore.pl 2008-10-02 15:56:57 UTC (rev 3045)
+++ branches/1.3/utils/postgis_restore.pl 2008-10-02 15:59:41 UTC (rev 3046)
@@ -685,12 +685,12 @@
`createdb $createdb_opt $dbname`;
die "Database creation failed\n" if ($?);
print "Adding plpgsql\n";
-`createlang plpgsql $dbname`;
+`createlang $createdb_opt plpgsql $dbname`;
#
# Open a pipe to the SQL monitor
#
-open( PSQL, "| psql -a $dbname") || die "Can't run psql\n";
+open( PSQL, "| psql $createdb_opt -a $dbname") || die "Can't run psql\n";
#
# Source new postgis.sql
More information about the postgis-commits
mailing list