Skip to content

Commit

Permalink
add the init.d scripts debian
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart committed Nov 26, 2024
1 parent d013089 commit 94ea257
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fpm/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ func Build(builder *dagger.Container, opts BuildOpts, targz *dagger.File) *dagge
}
)

// init.d scripts are service management scripts that start/stop/restart/enable the grafana service without systemd.
// these are likely to be deprecated as systemd is now the default pretty much everywhere.
if opts.PackageType != PackageTypeRPM {
packagePaths = append(packagePaths, "/pkg/etc/init.d")
}

container := builder.
WithFile("/src/grafana.tar.gz", targz).
WithEnvVariable("XZ_DEFAULTS", "-T0").
Expand Down

0 comments on commit 94ea257

Please sign in to comment.