From 25ec3cd0243f85db1c8f725d181d6e1b65af0264 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 19 Dec 2013 21:24:21 -0500 Subject: [PATCH] Adding test for PostgreSQL repo RPM --- Open-ILS/src/extras/install/Makefile.centos | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Open-ILS/src/extras/install/Makefile.centos b/Open-ILS/src/extras/install/Makefile.centos index bb9bb88534..0c2c5410d9 100644 --- a/Open-ILS/src/extras/install/Makefile.centos +++ b/Open-ILS/src/extras/install/Makefile.centos @@ -90,13 +90,14 @@ all: add_pgsql_repo install_centos_rpms install_js_sm make -f $(DIR)/Makefile.common install_cpan_force add_pgsql_repo: - if [ ! -z $(CENTOS_64) ]; then \ - wget $(PGSQL_64_REPO_URL)/$(PGSQL_REPO_RPM) ; \ - else \ - wget $(PGSQL_REPO_URL)/$(PGSQL_REPO_RPM) ; \ - fi ; \ - rpm -ivh $(PGSQL_REPO_RPM) - + if [ ! rpm -qa | grep pgdg-centos ]; then \ + if [ ! -z $(CENTOS_64) ]; then \ + wget $(PGSQL_64_REPO_URL)/$(PGSQL_REPO_RPM) ; \ + else \ + wget $(PGSQL_REPO_URL)/$(PGSQL_REPO_RPM) ; \ + fi ; \ + rpm -ivh $(PGSQL_REPO_RPM) \ + fi ; install_postgres_server: yum -y install $(PGSQL_CENTOS_RPMS) -- 2.11.0