From 5e7501bad61d0d217bfd25e4447d50bcac42637a Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 21 Sep 2010 15:52:09 +0000 Subject: [PATCH] Added debian-specific changes for the "separate provisioning db" feature. --- debian/mediator.default | 5 +++++ debian/mediator.init | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/debian/mediator.default b/debian/mediator.default index a2c48c2..19e1286 100644 --- a/debian/mediator.default +++ b/debian/mediator.default @@ -12,3 +12,8 @@ DEST_PORT="3306" DEST_USER="mediator" DEST_PASS='GimmeAllUr$$$' DEST_DB="accounting" +PROV_HOST="localhost" +PROV_PORT="3306" +PROV_USER="mediator" +PROV_PASS='GimmeAllUr$$$' +PROV_DB="provisioning" diff --git a/debian/mediator.init b/debian/mediator.init index 1077a6d..ee9071a 100755 --- a/debian/mediator.init +++ b/debian/mediator.init @@ -42,6 +42,11 @@ OPTIONS="" [ -z "$DEST_USER" ] || OPTIONS="$OPTIONS -U $DEST_USER" [ -z "$DEST_PASS" ] || OPTIONS="$OPTIONS -P $DEST_PASS" [ -z "$DEST_DB" ] || OPTIONS="$OPTIONS -B $DEST_DB" +[ -z "$PROV_HOST" ] || OPTIONS="$OPTIONS -S $PROV_HOST" +[ -z "$PROV_PORT" ] || OPTIONS="$OPTIONS -T $PROV_PORT" +[ -z "$PROV_USER" ] || OPTIONS="$OPTIONS -R $PROV_USER" +[ -z "$PROV_PASS" ] || OPTIONS="$OPTIONS -A $PROV_PASS" +[ -z "$PROV_DB" ] || OPTIONS="$OPTIONS -N $PROV_DB" if test "$FORK" = "yes" ; then OPTIONS="$OPTIONS -d" fi