mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Merge pull request #248 from cxhong/pgsql
failed to check postgresql package and ids
This commit is contained in:
commit
4bbde50119
@ -164,7 +164,7 @@ if ($::RUNCMD_RC != 0)
|
||||
#
|
||||
# check to see if postgresql is installed
|
||||
#
|
||||
my $cmd = "rpm -qa | grep postgresql";
|
||||
my $cmd = "rpm -q postgresql-server";
|
||||
if ($debianflag){
|
||||
$cmd = "dpkg -l | grep postgresql | awk '{print \$2}'";
|
||||
}
|
||||
@ -179,6 +179,8 @@ if ($::RUNCMD_RC != 0)
|
||||
xCAT::MsgUtils->message("E", " $cmd failed. $message");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
# check if 9.X release not built by us is installed, setup different
|
||||
# SLES used default dir
|
||||
if ( (grep(/postgresql9/, @output)) && ($::linuxos !~ /sles/) ){ # postgresql 9.x
|
||||
|
Loading…
x
Reference in New Issue
Block a user