Skip to content

Commit

Permalink
chore: πŸ€– make.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fzf404 committed Oct 7, 2022
1 parent 014de42 commit 32298ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ mail:
port: 25 # smtp ζœεŠ‘ε™¨η«―ε£
password: XXXXXXXXXXXXXXXX # smtp 密码

from: serverfzf404@163.com # smtp 发送者
from: server@163.com # smtp 发送者
to: # smtp ζŽ₯ζ”Άθ€…
- nmdfzf404@163.com
- client@163.com
12 changes: 12 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

mkdir -p webhooks/config webhooks/log webhooks/script

cp ./config/config.yaml webhooks/config
cp ./script/*.sh webhooks/script

go build -o webhooks/webhooks

tar -zcvf webhooks.tar.gz webhooks

rm -rf webhooks
2 changes: 1 addition & 1 deletion server/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func InitHook() {
// Return 403
w.WriteHeader(http.StatusForbidden)
w.Write([]byte("secret wrong"))
log.Printf("🟑 [%s] %s wrong secret : %s", name, platform, secret)
log.Printf("🟑 [%s] %s wrong secret: %s", name, platform, secret)
return
}

Expand Down

0 comments on commit 32298ba

Please sign in to comment.