Changeset 844
- Timestamp:
- 04/12/16 18:32:17 (9 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/MyIPDB.pm
r839 r844 22 22 # DB host is optional. 23 23 my $dbhost = 'localhost'; 24 ##fixme: need better way to export the variables above for db-update 25 sub dbname { $dbname } 26 sub dbuser { $dbuser } 27 sub dbpass { $dbpass } 28 sub dbhost { $dbhost } 24 29 25 30 # ACL for RPC shim. A hash of arrays; the hash keys are the remote system -
trunk/cgi-bin/db-update.pl
r822 r844 9 9 10 10 # run the tabledef update first. This is "safe"; IPDB < 3.0 can still happily munch away at it. 11 print qx { PGPASSWORD=ipdbpwd psql -h localhost -U ipdb ipdb <ipdb-2.7-3.0.sql }; 11 ##fixme 12 my $sqlcmd = "PGPASSWORD=".dbpass()." psql -h ".dbhost()." -U ".dbuser()." ".dbname()." <ipdb-2.7-3.0.sql"; 13 print qx $sqlcmd; 12 14 13 15 my $dbh;
Note:
See TracChangeset
for help on using the changeset viewer.