diff --git a/internal/config/config.go b/internal/config/config.go index e4c12621..9340bb6a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -173,5 +173,8 @@ func GetDefaultConfigToml() (*toml.Tree, error) { } func getLdConfigPath() string { - return "@/sbin/ldconfig.real" + if _, err := os.Stat("/sbin/ldconfig.real"); err == nil { + return "@/sbin/ldconfig.real" + } + return "@/sbin/ldconfig" }