Skip to content

Commit

Permalink
fix(ds-host): do not check bwrap paths if bwrap not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
teleclimber committed May 29, 2024
1 parent 19c2037 commit e27ba99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/ds-host/runtimeconfig/runtimeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ func Load(configFile string) *domain.RuntimeConfig {

validateConfig(rtc)
checkDirExists(rtc.DataDir, "data")
for _, p := range rtc.Sandbox.BwrapMapPaths {
checkDirExists(p, "bwrap-map-paths")

if rtc.Sandbox.UseBubblewrap {
for _, p := range rtc.Sandbox.BwrapMapPaths {
checkDirExists(p, "bwrap-map-paths")
}
}
setExec(rtc)

Expand Down

0 comments on commit e27ba99

Please sign in to comment.