added a global config.
authorpaulr <me@pjr.cc>
Mon, 12 Jul 2010 01:01:31 +0000 (11:01 +1000)
committerpaulr <me@pjr.cc>
Mon, 12 Jul 2010 01:01:31 +0000 (11:01 +1000)
bin/pbdc
bin/pbdc-bacula
etc/pbdc.conf [new file with mode: 0644]

index 8724026..1868fda 100644 (file)
--- 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
index 51a14b4..c85e579 100644 (file)
@@ -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 (file)
index 0000000..ad11b9f
--- /dev/null
@@ -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