From 564fed40ce255edf3a6fe176b7c95b66540267af Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 15 Jul 2022 18:19:35 +0300 Subject: [PATCH] trac: Remove legacy trac-authenticate script --- cookbooks/trac/files/default/trac-authenticate | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 cookbooks/trac/files/default/trac-authenticate diff --git a/cookbooks/trac/files/default/trac-authenticate b/cookbooks/trac/files/default/trac-authenticate deleted file mode 100755 index a25563736..000000000 --- a/cookbooks/trac/files/default/trac-authenticate +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/ruby - -require "net/http" -require "uri" - -user = gets.chop -pass = gets.chop - -request = Net::HTTP::Get.new("/api/0.6/user/details") -request.basic_auth user, pass - -response = Net::HTTP.start("api.openstreetmap.org", :use_ssl => true) do |http| - http.request(request) -end - -exit!(0) if response.is_a?(Net::HTTPSuccess) -exit!(1) -- 2.39.5