From b6adc3901aefe326526a96774e1a767f9c07a016 Mon Sep 17 00:00:00 2001 From: paulr Date: Mon, 12 Jul 2010 11:01:31 +1000 Subject: [PATCH] added a global config. --- bin/pbdc | 2 +- bin/pbdc-bacula | 2 +- etc/pbdc.conf | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 etc/pbdc.conf diff --git a/bin/pbdc b/bin/pbdc index 8724026..1868fda 100644 --- a/bin/pbdc +++ b/bin/pbdc @@ -1,5 +1,5 @@ #!/bin/sh -BASE_DIR="/home/paulr/src/eclipse-workspace/php-bacula-disk-changer/bin/" +. /etc/pbdc.conf php $BASE_DIR/pbdc.php $* \ No newline at end of file diff --git a/bin/pbdc-bacula b/bin/pbdc-bacula index 51a14b4..c85e579 100644 --- a/bin/pbdc-bacula +++ b/bin/pbdc-bacula @@ -1,5 +1,5 @@ #!/bin/sh -BASE_DIR="/home/paulr/src/eclipse-workspace/php-bacula-disk-changer/bin/" +. /etc/pbdc.conf php $BASE_DIR/pbdc-bacula.php $* \ No newline at end of file diff --git a/etc/pbdc.conf b/etc/pbdc.conf new file mode 100644 index 0000000..ad11b9f --- /dev/null +++ b/etc/pbdc.conf @@ -0,0 +1,6 @@ +BASE_DIR=/home/paulr/src/eclipse-workspace/php-bacula-disk-changer/ +BASE_LIB=/home/paulr/src/eclipse-workspace/php-bacula-disk-changer/lib/ +BASE_DATA=/home/paulr/src/eclipse-workspace/php-bacula-disk-changer/db/ +BACULA_USER="paulr" + +export BACULA_USER BASE_DATA BASE_LIB BASE_DIR \ No newline at end of file -- 1.7.0.4