Skip to content

Commit

Permalink
Fix an issue where deb installers were missing conffiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart committed Aug 28, 2023
1 parent 432743f commit 49c7132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipelines/package_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ func PackageInstaller(ctx context.Context, d *dagger.Client, args PipelineArgs,
}
}

// These paths need to be absolute when installed on the machine and not the package structure.
for _, c := range opts.ConfigFiles {
fpmArgs = append(fpmArgs, fmt.Sprintf("--config-files=%s", c[1]))
fpmArgs = append(fpmArgs, fmt.Sprintf("--config-files=%s", strings.TrimPrefix(c[1], "/pkg")))
}

if opts.AfterInstall != "" {
Expand Down

0 comments on commit 49c7132

Please sign in to comment.