Skip to content

Commit

Permalink
Pass along the configuration directory for cache plugins
Browse files Browse the repository at this point in the history
The cache plugin directory is controlled by environment variable.  If
the environment variable is set in the `pelican` environment, pass its
value along to xrootd.

Simplifies testing in environments where the plugin is not installed
as root.
  • Loading branch information
bbockelm committed Sep 19, 2024
1 parent 5bd6f71 commit 2e6a91c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xrootd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package xrootd
import (
"context"
_ "embed"
"os"
"path/filepath"
"regexp"
"strconv"
Expand Down Expand Up @@ -87,6 +88,9 @@ func makeUnprivilegedXrootdLauncher(daemonName string, configPath string, isCach
"XRD_PELICANCLIENTCERTFILE=" + filepath.Join(xrootdRun, "copied-tls-creds.crt"),
"XRD_PELICANCLIENTKEYFILE=" + filepath.Join(xrootdRun, "copied-tls-creds.crt"),
}
if confDir := os.Getenv("XRD_PLUGINCONFDIR"); confDir != "" {
result.ExtraEnv = append(result.ExtraEnv, "XRD_PLUGINCONFDIR="+confDir)
}
}
return
}
Expand Down

0 comments on commit 2e6a91c

Please sign in to comment.