<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../iRODS
export EIRODSPOSTGRESVERSION=`\`which psql\` --version | head -n1 | awk '{print $3}' | cut -d'.' -f1,2`
echo "Detecting PostgreSQL Version: [$EIRODSPOSTGRESVERSION]"
sed -e s/EIRODSPOSTGRESVERSION/$EIRODSPOSTGRESVERSION/ ../packaging/irods.config.epm > /tmp/irods.config.epm
./scripts/configure
cp /tmp/irods.config.epm ./config/irods.config
./scripts/configure
cp /tmp/irods.config.epm ./config/irods.config
make

<commit_msg>made changes to how the DATABASE_HOME variable was discovered and then applied to config/irods.conf this should work on ubuntu and centos.  for the moment.<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../iRODS


export EIRODSPOSTGRESPATH=`../packaging/find_postgres.sh | sed -e s,\/[^\/]*$,, -e s,\/[^\/]*$,,`
export EIRODSPOSTGRESPATH="$EIRODSPOSTGRESPATH/"
echo "Detecting PostgreSQL Path: [$EIRODSPOSTGRESPATH]"

sed -e s,EIRODSPOSTGRESPATH,$EIRODSPOSTGRESPATH, ../packaging/irods.config.epm > /tmp/irods.config.epm

./scripts/configure
cp /tmp/irods.config.epm ./config/irods.config
./scripts/configure
cp /tmp/irods.config.epm ./config/irods.config
make


{'fraction_non_alphanumeric': 0.17842660178426603, 'fraction_numerical': 0.004866180048661801, 'mean_word_length': 4.341991341991342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1503025', 'n_tokens_mistral': 505, 'n_tokens_neox': 471, 'n_words': 98}