esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
# if we have no command line arguments, prompt the user
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
# if we have no command line arguments, prompt the user
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
# if we have no command line arguments, prompt the user
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ ! -z "$AT_EVENT_DEF" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ ! -z "$BARCODE" ] && [ -z "$EMAIL" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ ! -z "$BARCODE" ] && [ -z "$EMAIL" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ ! -z "$AT_EVENT_DEF" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ "$SERVER" = "test" ]; then
#!/bin/bash
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
psql -U evergreen -h $PG_HOST -c 'select count(*) from actor.org_unit where ou_type not in (1, 2) and opac_visible'
#!/bin/bash
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
psql -U evergreen -h $PG_HOST -A -o pines_active_libraries_`date +%F`.csv -c 'select pou.name as "System", ou.name as "Branch/Bookmobile/Sub-Lib" from actor.org_unit ou join actor.org_unit pou on (ou.parent_ou = pou.id) where ou.ou_type not in (1, 2) and ou.opac_visible order by 1, 2'
#!/bin/bash
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
psql -U evergreen -h $PG_HOST -A -o pines_active_libraries_with_ids_`date +%F`.csv -c 'select pou.name as "System", ou.name as "Branch/Bookmobile/Sub-Lib", ou.id as "ID", ou.shortname as "PINES Code" from actor.org_unit ou join actor.org_unit pou on (ou.parent_ou = pou.id) where ou.ou_type not in (1, 2) and ou.opac_visible order by 1, 2'
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
# if we have no command line arguments, or both billings and payments selected, exit the script
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ "$SERVER" = "test" ]; then
}
GROUP_NAME="$1"
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
Usage;
fi
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
NOTICE_DATE=$(date -d "$DUE_DATE -3 days" +%F)
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ "$SERVER" = "test" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ -z "$USER_BARCODE" ]; then
esac
done
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
if [ "$SERVER" = "test" ]; then
+++ /dev/null
-#!/bin/bash
-
-# configuration for DB - read by all pines-finder files,
-# so make sure this file is in the same working directory
-# as each script.
-
-# Note: it is assumed that you're using .pgpass here
-PSQL="/usr/bin/psql"
-PSQL_USER="mydbuser"
-PSQL_HOST="mydbhost"
-PSQL_DB="mydbname"
--- /dev/null
+#!/bin/bash
+
+# configuration for DB - read by all pines-finder files,
+# so make sure this file is in the same working directory
+# as each script.
+
+# Note: it is assumed that you're using .pgpass here
+PSQL="/usr/bin/psql"
+PSQL_USER="mydbuser"
+PSQL_HOST="mydbhost"
+PSQL_DB="mydbname"
Usage;
fi
-PG_CONFIG="pg_config"
+PG_CONFIG="pg_db_config"
source $PG_CONFIG || echo "PostgreSQL configuration file $PG_CONFIG not found. exiting" && exit 1;
NOTICE_DATE=$(date -d "$DUE_DATE -2 days" +%F)