Do the whole pgtap build and install as root
authorDan Scott <dscott@laurentian.ca>
Sun, 5 Mar 2017 23:37:26 +0000 (18:37 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 5 Mar 2017 23:37:26 +0000 (18:37 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
installer/jessie/eg_jessie_installer.sh
installer/wheezy/eg_wheezy_installer.sh

index 64b120c..d8c57e8 100755 (executable)
@@ -443,16 +443,12 @@ function configure_database {
 
     if [ $LIVETEST ]; then
         PG_TAP_VER="0.97.0"
-        PG_CMD="
         wget http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
         && unzip pgtap-$PG_TAP_VER.zip \
         && cd pgtap-$PG_TAP_VER \
         && make \
         && make installcheck
-        "
-        su - postgres -c "$PG_CMD"
-        cd /var/lib/postgresql/pgtap \
-        && make install;
+        && make install
         echo 'CREATE EXTENSION pgtap;' | su - postgres -c "psql evergreen"
     fi;
     echo configure database =~-._
index 810db72..a33a132 100755 (executable)
@@ -451,16 +451,12 @@ function configure_database {
 
     if [ $LIVETEST ]; then
         PG_TAP_VER="0.97.0"
-        PG_CMD="
         wget http://api.pgxn.org/dist/pgtap/$PG_TAP_VER/pgtap-$PG_TAP_VER.zip \
         && unzip pgtap-$PG_TAP_VER.zip \
         && cd pgtap-$PG_TAP_VER \
         && make \
         && make installcheck
-        "
-        su - postgres -c "$PG_CMD"
-        cd /var/lib/postgresql/pgtap \
-        && make install;
+        && make install
         echo 'CREATE EXTENSION pgtap;' | su - postgres -c "psql evergreen"
     fi;
     echo configure database =~-._