You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/n/omero/rc.omero

91 lines
2.3 KiB
Plaintext

#!/bin/bash
[ -n "$DB_PORT" ] || DB_PORT=5432
DB_NAME=$(sed -nre 's/^omero\.db\.name=(.*)$/\1/p' $CONFIG_FILE)
DB_USER=$(sed -nre 's/^omero\.db\.user=(.*)$/\1/p' $CONFIG_FILE)
PGOPTS="-h $DB_HOST -p $DB_PORT -U $DB_ROOT"