|
From: <jas...@us...> - 2002-10-20 13:07:36
|
Update of /cvsroot/genex/genex-server
In directory usw-pr-cvs1:/tmp/cvs-serv26576
Modified Files:
Install
Log Message:
db.pl fix
Index: Install
===================================================================
RCS file: /cvsroot/genex/genex-server/Install,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Install 15 Oct 2002 19:24:50 -0000 1.6
--- Install 20 Oct 2002 13:07:33 -0000 1.7
***************
*** 549,552 ****
--- 549,553 ----
}
+ chdir($MOTHERDIR);
slow() if ($SLOW);
***************
*** 574,577 ****
--- 575,579 ----
my $db_init = 'db.pl';
+ my $command = "su -c '$^X $MOTHERDIR/$db_init' postgres";
my $run_installer;
***************
*** 581,585 ****
Hmmm - you are not running this as root. I\'m going to execute the
! command "su -c '$^X $db_init' postgres", and since you\'re
not root, 'su' will prompt you for a password, which is likely to fail
since the postgres account rarely has it\'s own password.
--- 583,587 ----
Hmmm - you are not running this as root. I\'m going to execute the
! command "$command", and since you\'re
not root, 'su' will prompt you for a password, which is likely to fail
since the postgres account rarely has it\'s own password.
***************
*** 599,606 ****
If I encounter trouble, you can run the DB installer yourself using:
! '$^X $db_init'.
EOM
! genex_system("su -c '$^X ./$db_init' postgres");
die(<<EOE) if $?;
--- 601,608 ----
If I encounter trouble, you can run the DB installer yourself using:
! '$command'.
EOM
! genex_system("$command");
die(<<EOE) if $?;
|