diff options
Diffstat (limited to 'config/bacula-client')
-rw-r--r-- | config/bacula-client/bacula-client.inc | 5 | ||||
-rw-r--r-- | config/bacula-client/bacula-client.xml | 4 | ||||
-rw-r--r-- | config/bacula-client/bacula-client_fd.xml | 8 |
3 files changed, 3 insertions, 14 deletions
diff --git a/config/bacula-client/bacula-client.inc b/config/bacula-client/bacula-client.inc index a8a89250..6b54229c 100644 --- a/config/bacula-client/bacula-client.inc +++ b/config/bacula-client/bacula-client.inc @@ -96,15 +96,12 @@ function baculaclient_custom_php_write_config(){ if (is_array($config['installedpackages']['baculaclientfd']['config'])){
$port = $config['installedpackages']['baculaclientfd']['config'][0]['port'];
$jobs = $config['installedpackages']['baculaclientfd']['config'][0]['jobs'];
- $filedaemon = $config['installedpackages']['baculaclientfd']['config'][0]['name'];
}
else{
- $filedaemon="default";
$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\t Maximun Concurrent Jobs = {$jobs}\n \n}\n";
- $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\t}\n";
+ $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";
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
diff --git a/config/bacula-client/bacula-client.xml b/config/bacula-client/bacula-client.xml index 018f47f9..054d7f08 100644 --- a/config/bacula-client/bacula-client.xml +++ b/config/bacula-client/bacula-client.xml @@ -135,7 +135,7 @@ <description><![CDATA[Enter password for Diector use to Access.]]></description>
</field>
<field>
- <fielddescr>Director tyoe</fielddescr>
+ <fielddescr>Director type</fielddescr>
<fieldname>type</fieldname>
<type>select</type>
<options>
@@ -143,7 +143,7 @@ <option><name>Local</name><value>Local</value></option>
<option><name>Monitor</name><value>Monitor</value></option>
</options>
- <description>This is a Local Director?</description>
+ <description>Director Type. You need at least one local director.</description>
</field>
</fields>
<custom_php_install_command>
diff --git a/config/bacula-client/bacula-client_fd.xml b/config/bacula-client/bacula-client_fd.xml index be9d3fd8..228ad66f 100644 --- a/config/bacula-client/bacula-client_fd.xml +++ b/config/bacula-client/bacula-client_fd.xml @@ -72,14 +72,6 @@ <name>daemon</name>
</field>
<field>
- <fielddescr>Daemon name</fielddescr>
- <fieldname>name</fieldname>
- <type>input</type>
- <size>25</size>
- <description>Name for File Daemon. Default : default </description>
- <required/>
- </field>
- <field>
<fielddescr>File Daemon Port</fielddescr>
<fieldname>port</fieldname>
<type>input</type>
|