From: Chris Sharp Date: Fri, 20 Dec 2013 02:24:21 +0000 (-0500) Subject: Adding test for PostgreSQL repo RPM X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=25ec3cd0243f85db1c8f725d181d6e1b65af0264;p=working%2FEvergreen.git Adding test for PostgreSQL repo RPM --- 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)