From 984e32455cd547f697b93fea7d88b5adb160513b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 7 Dec 2019 21:42:30 +0300 Subject: [PATCH] Disable /gpgupdate/ URL by default --- gocheese.go | 4 +++- pyshop2packages.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gocheese.go b/gocheese.go index ff76c87..40f172b 100644 --- a/gocheese.go +++ b/gocheese.go @@ -701,7 +701,9 @@ func main() { } http.HandleFunc(*norefreshURLPath, handler) http.HandleFunc(*refreshURLPath, handler) - http.HandleFunc(*gpgUpdateURLPath, handler) + if *gpgUpdateURLPath != "" { + http.HandleFunc(*gpgUpdateURLPath, handler) + } needsRefreshPasswd := make(chan os.Signal, 0) needsShutdown := make(chan os.Signal, 0) diff --git a/pyshop2packages.sh b/pyshop2packages.sh index 2a3e2b2..034f8c1 100755 --- a/pyshop2packages.sh +++ b/pyshop2packages.sh @@ -51,6 +51,7 @@ done ######################################################################## cd packages for pkg in * ; do + # Assume gocheese -gpgupdate /gpgupdate/ curl http://localhost:8080/gpgupdate/$pkg/ > /dev/null done -- 2.44.0