aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-02 11:39:52 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-02 11:39:52 -0300
commit1ab818afaa5643a564391da66bf59a8f236d127c (patch)
treee9b144b0519564cd86c245bb533a6d1c34887f35
parent48b32e1845e013cf3e10f924105a36a9297be94a (diff)
downloadpfsense-packages-1ab818afaa5643a564391da66bf59a8f236d127c.tar.gz
pfsense-packages-1ab818afaa5643a564391da66bf59a8f236d127c.tar.bz2
pfsense-packages-1ab818afaa5643a564391da66bf59a8f236d127c.zip
bacula-client - fix localdirector var call on bacula client conf
-rw-r--r--config/bacula-client/bacula-client.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/bacula-client/bacula-client.inc b/config/bacula-client/bacula-client.inc
index 6b54229c..69e4223b 100644
--- a/config/bacula-client/bacula-client.inc
+++ b/config/bacula-client/bacula-client.inc
@@ -101,7 +101,7 @@ function baculaclient_custom_php_write_config(){
$port="9102";
$jobs="20";
}
- $baculaclient_conf .= "FileDaemon { \n\t Name = {$filedaemon}-fd #\n\t FDport = {$port}\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\tMaximum Concurrent Jobs = {$jobs}\n\t}\n";
+ $baculaclient_conf .= "FileDaemon { \n\t Name = {$LocalDirector}-fd #\n\t FDport = {$port}\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\tMaximum Concurrent Jobs = {$jobs}\n\t}\n";
file_put_contents("/usr/local/etc/bacula-fd.conf",$baculaclient_conf,LOCK_EX);
exec("/usr/local/etc/rc.d/bacula-fd.sh restart");
// Mount Read-only