[Bug 285213] sysutils/bareos-server the rc.d/bareos-dir doesnt' respect custom bareos_dir_config value

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Mar 2025 02:09:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285213

            Bug ID: 285213
           Summary: sysutils/bareos-server the rc.d/bareos-dir doesnt'
                    respect custom bareos_dir_config value
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: vrurg@lflat.org
          Assignee: acm@FreeBSD.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)

When bareos configuration is installed in a custom local directory the startup
script ignores the `bareos_dir_config` value and executes config check on the
default directory resulting in failed startup.

Suggested fix: add `-c ${bareos_dir_config}` to the line 45. The final look of
the bareos_dir_configrtest function is expected to be:

bareos_dir_configtest() {
        echo "Performing sanity check on ${bareos_dir_config} configuration:"
        eval ${command} -c ${bareos_dir_config} -t
}

-- 
You are receiving this mail because:
You are the assignee for the bug.