summaryrefslogtreecommitdiff
path: root/internal/command/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/command.go')
-rw-r--r--internal/command/command.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/command/command.go b/internal/command/command.go
index 7e0617e..a2c5912 100644
--- a/internal/command/command.go
+++ b/internal/command/command.go
@@ -2,6 +2,7 @@ package command
import (
"context"
+ "os"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedprincipals"
@@ -34,6 +35,10 @@ func New(e *executable.Executable, arguments []string, config *config.Config, re
}
if cmd := buildCommand(e, args, config, readWriter); cmd != nil {
+ if config.SslCertDir != "" {
+ os.Setenv("SSL_CERT_DIR", config.SslCertDir)
+ }
+
return cmd, nil
}