[installer] Fix the suggested 'createlang plpgsql' cmdline.
This commit is contained in:
parent
7b725a642d
commit
5fa8aa8597
1
CHANGES
1
CHANGES
|
@ -20,6 +20,7 @@ For further information about Photo Organizer, see its web site at:
|
|||
[fix] Fix the rating code for PG 8.3.x
|
||||
[misc] When editing a folder/album, return to where you came. [#380]
|
||||
[fix] 'replace master' on version uploads was broken. [#383]
|
||||
[fix] Installer suggested an improper cmdline [#384]
|
||||
|
||||
2.36 (August 17, 2008)
|
||||
|
||||
|
|
|
@ -745,7 +745,8 @@ function po_new_install($database) {
|
|||
global $image_repository_path;
|
||||
global $first_volume;
|
||||
global $new_install;
|
||||
global $db_name;
|
||||
global $db_dsn;
|
||||
|
||||
$new_install = TRUE;
|
||||
|
||||
/* Ensure we have pl/pgsql support */
|
||||
|
@ -756,6 +757,14 @@ function po_new_install($database) {
|
|||
if (pg_num_rows($res) > 0) {
|
||||
print "<font color=\"green\">OK</font></li>\n";
|
||||
} else {
|
||||
$list = split(" ", $db_dsn);
|
||||
$db_name = "put_po_db_name_here";
|
||||
foreach ($list as $item) {
|
||||
$pair = split("=", $item);
|
||||
if ($pair[0] = 'dbname') {
|
||||
$db_name = $pair[1];
|
||||
}
|
||||
}
|
||||
print "<font color=\"red\">FAILED</font></li>\n";
|
||||
print "<li>Run this command as root:<br/>\n";
|
||||
print "<pre>su - postgres -c \"createlang plpgsql $db_name\"</pre></li>\n";
|
||||
|
|
Loading…
Reference in New Issue