From: Sergey Matveev Date: Sat, 7 Dec 2019 18:42:30 +0000 (+0300) Subject: Disable /gpgupdate/ URL by default X-Git-Tag: v2.1.0~3 X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=commitdiff_plain;h=984e32455cd547f697b93fea7d88b5adb160513b Disable /gpgupdate/ URL by default --- 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