Build: don't remove grafana-server and grafana-cli binaries from deb and rpm packages (#59890)

* don't remove grafana-server and grafana-cli binaries from /usr/share/grafana/bin in deb and rpm packages

* don't add config overrides in /usr/sbin/grafana-server
This commit is contained in:
Dan Cech
2022-12-06 10:36:43 -05:00
committed by GitHub
parent f1fb202284
commit 1dbc22d18b
2 changed files with 1 additions and 35 deletions
-12
View File
@@ -340,18 +340,6 @@ func createPackage(srcDir string, options linuxPackageOptions) error {
return err
}
// remove unneeded binaries, these are exposed via wrappers that provide the needed configuration
for _, fileName := range []string{
cliBinary,
cliBinary + ".md5",
serverBinary,
serverBinary + ".md5",
} {
if err := os.Remove(filepath.Join(packageRoot, options.homeBinDir, fileName)); err != nil {
return fmt.Errorf("failed to remove %q: %w", filepath.Join(options.homeBinDir, fileName), err)
}
}
if err := executeFPM(options, packageRoot, srcDir); err != nil {
return err
}