remove incorrect/duplicate function def
authorChris Sharp <csharp@georgialibraries.org>
Fri, 15 Oct 2021 13:16:53 +0000 (09:16 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 15 Oct 2021 13:16:53 +0000 (09:16 -0400)
templates/setup.sh

index 969b0d8..2748512 100755 (executable)
@@ -372,10 +372,6 @@ else ### setup logging services on this host.
 fi
 }
 
-Add_PG_APT_Repo () {
-wget sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
-sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
-}
 
 ### Setup DB #and repoter
 DBInstallErr () { ### DB install error.
@@ -393,7 +389,6 @@ then
        sleep 2
        if [ "$PKG_SET" = "0" ] 
        then
-            Add_PG_APT_Repo
            $APT_TOOL update
            $APT_TOOL -yq install postgresql-${PG_VER} postgresql-contrib-${PG_VER} postgresql-plperl-${PG_VER} postgresql-server-dev-${PG_VER} || DBInstallErr 
        else