diff options
Diffstat (limited to 'doRelease.go')
| -rw-r--r-- | doRelease.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doRelease.go b/doRelease.go index 887dab9..c436e70 100644 --- a/doRelease.go +++ b/doRelease.go @@ -11,6 +11,7 @@ import ( "strings" "time" + "go.wit.com/lib/config" "go.wit.com/lib/gui/shell" "go.wit.com/log" ) @@ -110,10 +111,12 @@ func doRelease() (string, error) { // fmt.Fprintf(rfile, "SHA256:\n") rfile.Close() + gpgKeyID := config.GetPanic("gpgKeyID") // Sign the file log.Println("Signing with GPG key:", gpgKeyID) - distPath := "/home/mirrors/wit/dists/sid" + // distPath := "/home/mirrors/wit/dists/sid" + distPath := config.GetPanic("distPath") // Create InRelease cmdClearSign := exec.Command("gpg", "--default-key", gpgKeyID, "--clearsign", "-o", filepath.Join(distPath, "InRelease"), releasePath) if err := runCommand(cmdClearSign); err != nil { |
