2
0
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:
Victor Hu 2015-10-08 17:09:51 -04:00
commit 4bbde50119

View File

@ -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