More review fixups

This commit is contained in:
Janne Heß 2022-07-08 23:45:38 +02:00 committed by Pogobanane
parent 8b4048123e
commit 7f38c98162
3 changed files with 6 additions and 8 deletions

View file

@ -933,7 +933,7 @@ func installSecrets(args []string) error {
if manifest.UserMode {
rundir, ok := os.LookupEnv("XDG_RUNTIME_DIR")
if !ok {
if opts.checkMode == Off && !ok {
return fmt.Errorf("$XDG_RUNTIME_DIR is not set!")
}
manifest.SecretsMountPoint = replaceRuntimeDir(manifest.SecretsMountPoint, rundir)