From 5779c31c1d2809342cfc4117fc4181e63e672102 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 2 Oct 2008 15:59:41 +0000 Subject: [PATCH] pass commandline options into commands (#45) git-svn-id: http://svn.osgeo.org/postgis/branches/1.3@3046 b70326c6-7e19-0410-871a-916f4a2858ee --- utils/postgis_restore.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/postgis_restore.pl b/utils/postgis_restore.pl index a9d150f1f..807be3b60 100644 --- a/utils/postgis_restore.pl +++ b/utils/postgis_restore.pl @@ -685,12 +685,12 @@ print "Creating db ($dbname)\n"; `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 -- 2.49.0