2017-10-18 | Paul Boddie | file changeset files shortlog | Attempt to prevent erroneous store type configuration overriding. |
paul@1089 | 1 | #!/bin/sh |
paul@1089 | 2 | |
paul@1089 | 3 | THIS_DIR=`dirname "$0"` |
paul@1089 | 4 | BASE_DIR="$THIS_DIR/.." |
paul@1089 | 5 | |
paul@1095 | 6 | STORE_TYPE=${STORE_TYPE:-file} |
paul@1089 | 7 | |
paul@1095 | 8 | if [ "$STORE_TYPE" = "file" ]; then |
paul@1089 | 9 | STORE=/tmp/store |
paul@1089 | 10 | JOURNAL=/tmp/journal |
paul@1095 | 11 | elif [ "$STORE_TYPE" = "postgresql" ]; then |
paul@1095 | 12 | DBNAME='imip_agent_test' |
paul@1089 | 13 | STORE="dbname=$DBNAME" |
paul@1089 | 14 | JOURNAL="$STORE" |
paul@1089 | 15 | fi |
paul@1089 | 16 | |
paul@1089 | 17 | STATIC=/tmp/static |
paul@1089 | 18 | PREFS=/tmp/prefs |
paul@1089 | 19 | |
paul@1095 | 20 | ARGS="-T $STORE_TYPE -S $STORE -P $STATIC -p $PREFS -j $JOURNAL -d" |
paul@1089 | 21 | |
paul@1089 | 22 | RESOURCE_SCRIPT="$BASE_DIR/imip_resource.py" |
paul@1089 | 23 | |
paul@1089 | 24 | SHOWMAIL="$BASE_DIR/tools/showmail.py" |
paul@1089 | 25 | |
paul@1089 | 26 | TEMPLATES="$THIS_DIR/templates" |
paul@1089 | 27 | |
paul@1089 | 28 | ERROR=err.tmp |
paul@1220 | 29 | |
paul@1220 | 30 | DBERROR=dberr.tmp |