nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 16 lines 586 B view raw
1diff --git a/bin/collector b/bin/collector 2index 4bdce08178..5edc0a4aee 100755 3--- a/bin/collector 4+++ b/bin/collector 5@@ -3,9 +3,11 @@ 6 7 Process.setproctitle("discourse prometheus-collector") 8 9+# We need the ABI version {MAJOR}.{MINOR}.0 here. 10+abi_version = ENV['GEM_PATH'].split("/")[-1] 11 spec_file = 12 File.expand_path( 13- "../../gems/#{RUBY_VERSION}/specifications/#{"prometheus_exporter-#{ENV["PROMETHEUS_EXPORTER_VERSION"]}"}.gemspec", 14+ "../../gems/#{abi_version}/specifications/#{"prometheus_exporter-#{ENV["PROMETHEUS_EXPORTER_VERSION"]}"}.gemspec", 15 __FILE__, 16 )