]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Add default paths to json tools and configs in api config wizard
authorWanderlei Huttel <wanderleihuttel@gmail.com>
Wed, 1 Nov 2017 18:24:16 +0000 (19:24 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Wed, 1 Nov 2017 18:36:44 +0000 (19:36 +0100)
gui/baculum/protected/API/Pages/Panel/APIInstallWizard.php

index 09c5b689efa71e3fdf5d5427c4ce3287acd2c9ab..d06653161629e5194acb7a42462e5791aa327992 100644 (file)
@@ -44,6 +44,13 @@ class APIInstallWizard extends BaculumAPIPage {
        const DEFAULT_DB_LOGIN = 'bacula';
        const DEFAULT_BCONSOLE_BIN = '/usr/sbin/bconsole';
        const DEFAULT_BCONSOLE_CONF = '/etc/bacula/bconsole.conf';
+       const DEFAULT_BDIRJSON_BIN = '/usr/sbin/bdirjson';
+       const DEFAULT_DIR_CONF = '/etc/bacula/bacula-dir.conf';
+       const DEFAULT_BSDJSON_BIN = '/usr/sbin/bsdjson';
+       const DEFAULT_SD_CONF = '/etc/bacula/bacula-sd.conf';
+       const DEFAULT_BFDJSON_BIN = '/usr/sbin/bfdjson';
+       const DEFAULT_FD_CONF = '/etc/bacula/bacula-fd.conf';
+       const DEFAULT_BBCONJSON_BIN = '/usr/sbin/bbconsjson';
 
        public function onPreInit($param) {
                parent::onPreInit($param);
@@ -71,6 +78,14 @@ class APIInstallWizard extends BaculumAPIPage {
                                $this->Login->Text = self::DEFAULT_DB_LOGIN;
                                $this->BconsolePath->Text = self::DEFAULT_BCONSOLE_BIN;
                                $this->BconsoleConfigPath->Text = self::DEFAULT_BCONSOLE_CONF;
+                               $this->BDirJSONPath->Text = self::DEFAULT_BDIRJSON_BIN;
+                               $this->DirCfgPath->Text = self::DEFAULT_DIR_CONF;
+                               $this->BSdJSONPath->Text = self::DEFAULT_BSDJSON_BIN;
+                               $this->SdCfgPath->Text = self::DEFAULT_SD_CONF;
+                               $this->BFdJSONPath->Text = self::DEFAULT_BFDJSON_BIN;
+                               $this->FdCfgPath->Text = self::DEFAULT_FD_CONF;
+                               $this->BBconsJSONPath->Text = self::DEFAULT_BBCONJSON_BIN;
+                               $this->BconsCfgPath->Text = self::DEFAULT_BCONSOLE_CONF;
                                $this->DatabaseNo->Checked = true;
                                $this->ConsoleNo->Checked = true;
                                $this->ConfigNo->Checked = true;