From: paulr Date: Mon, 12 Jul 2010 01:01:31 +0000 (+1000) Subject: added a global config. X-Git-Url: http://git.pjr.cc/?p=php-bacula-disk-changer.git;a=commitdiff_plain;h=b6adc3901aefe326526a96774e1a767f9c07a016 added a global config. --- 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