Skip to content

Commit 09d326d

Browse files
authored
Merge branch 'acmesh-official:dev' into dev
2 parents fcd358e + 8cac773 commit 09d326d

28 files changed

+115
-55
lines changed

.github/workflows/wiki-monitor.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Notify via Issue on Wiki Edit
2+
3+
on:
4+
gollum:
5+
6+
jobs:
7+
notify:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout wiki repository
11+
uses: actions/checkout@v4
12+
with:
13+
repository: ${{ github.repository }}.wiki
14+
path: wiki
15+
16+
- name: Generate wiki change message
17+
run: |
18+
actor="${{ github.actor }}"
19+
sender_url=$(jq -r '.sender.html_url' "$GITHUB_EVENT_PATH")
20+
page_name=$(jq -r '.pages[0].page_name' "$GITHUB_EVENT_PATH")
21+
page_sha=$(jq -r '.pages[0].sha' "$GITHUB_EVENT_PATH")
22+
page_url=$(jq -r '.pages[0].html_url' "$GITHUB_EVENT_PATH")
23+
page_action=$(jq -r '.pages[0].action' "$GITHUB_EVENT_PATH")
24+
now="$(date '+%Y-%m-%d %H:%M:%S')"
25+
26+
cd wiki
27+
prev_sha=$(git rev-list $page_sha^ -- "$page_name.md" | head -n 1)
28+
if [ -n "$prev_sha" ]; then
29+
git diff $prev_sha $page_sha -- "$page_name.md" > ../wiki.diff || echo "(No diff found)" > ../wiki.diff
30+
else
31+
echo "(no diff)" > ../wiki.diff
32+
fi
33+
cd ..
34+
{
35+
echo "Wiki edited"
36+
echo -n "User: "
37+
echo "[$actor]($sender_url)"
38+
echo "Time: $now"
39+
echo "Page: [$page_name]($page_url) (Action: $page_action)"
40+
echo ""
41+
echo "----"
42+
echo "### diff:"
43+
echo '```diff'
44+
cat wiki.diff
45+
echo '```'
46+
} > wiki-change-msg.txt
47+
48+
- name: Create issue to notify Neilpang
49+
uses: peter-evans/create-issue-from-file@v5
50+
with:
51+
title: "Wiki edited"
52+
content-filepath: ./wiki-change-msg.txt
53+
assignees: Neilpang
54+
env:
55+
TZ: Asia/Shanghai
56+
57+
58+
59+
60+

acme.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,12 @@ _ss() {
14011401
return 0
14021402
fi
14031403

1404+
if [ "$(uname)" = "AIX" ]; then
1405+
_debug "Using: AIX netstat"
1406+
netstat -an | grep "^tcp" | grep "LISTEN" | grep "\.$_port "
1407+
return 0
1408+
fi
1409+
14041410
if _exists "netstat"; then
14051411
_debug "Using: netstat"
14061412
if netstat -help 2>&1 | grep "\-p proto" >/dev/null; then
@@ -2761,7 +2767,7 @@ _initAPI() {
27612767
_request_retry_times=0
27622768
while [ -z "$ACME_NEW_ACCOUNT" ] && [ "${_request_retry_times}" -lt "$MAX_API_RETRY_TIMES" ]; do
27632769
_request_retry_times=$(_math "$_request_retry_times" + 1)
2764-
response=$(_get "$_api_server")
2770+
response=$(_get "$_api_server" "" 10)
27652771
if [ "$?" != "0" ]; then
27662772
_debug2 "response" "$response"
27672773
_info "Cannot init API for: $_api_server."
@@ -3507,7 +3513,7 @@ _on_before_issue() {
35073513
_debug _chk_alt_domains "$_chk_alt_domains"
35083514
#run pre hook
35093515
if [ "$_chk_pre_hook" ]; then
3510-
_info "Runing pre hook:'$_chk_pre_hook'"
3516+
_info "Running pre hook:'$_chk_pre_hook'"
35113517
if ! (
35123518
export Le_Domain="$_chk_main_domain"
35133519
export Le_Alt="$_chk_alt_domains"
@@ -4496,6 +4502,7 @@ issue() {
44964502

44974503
if ! _on_before_issue "$_web_roots" "$_main_domain" "$_alt_domains" "$_pre_hook" "$_local_addr"; then
44984504
_err "_on_before_issue."
4505+
_on_issue_err "$_post_hook"
44994506
return 1
45004507
fi
45014508

dnsapi/dns_beget.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Options:
77
BEGET_User API user
88
BEGET_Password API password
99
Issues: github.com/acmesh-official/acme.sh/issues/6200
10-
Author: ARNik [email protected]
10+
Author: ARNik <[email protected]>
1111
'
1212

1313
Beget_Api="https://api.beget.com/api"

dnsapi/dns_bookmyname.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Options:
77
BOOKMYNAME_USERNAME Username
88
BOOKMYNAME_PASSWORD Password
99
Issues: github.com/acmesh-official/acme.sh/issues/3209
10-
Author: Neilpang
10+
Author: @Neilpang
1111
'
1212

1313
######## Public functions #####################

dnsapi/dns_ddnss.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_ddnss
66
Options:
77
DDNSS_Token API Token
88
Issues: github.com/acmesh-official/acme.sh/issues/2230
9-
Author: RaidenII, helbgd, mod242
9+
Author: @helbgd, @mod242
1010
'
1111

1212
DDNSS_DNS_API="https://ddnss.de/upd.php"

dnsapi/dns_dnshome.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Options:
77
DNSHOME_Subdomain Subdomain
88
DNSHOME_SubdomainPassword Subdomain Password
99
Issues: github.com/acmesh-official/acme.sh/issues/3819
10-
Author: dnsHome.de https://github.com/dnsHome-de
10+
Author: @dnsHome-de
1111
'
1212

1313
# Usage: add subdomain.ddnsdomain.tld "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"

dnsapi/dns_duckdns.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Site: www.DuckDNS.org
55
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_duckdns
66
Options:
77
DuckDNS_Token API Token
8-
Author: RaidenII
8+
Author: @RaidenII
99
'
1010

1111
DuckDNS_API="https://www.duckdns.org/update"

dnsapi/dns_dyn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Options:
88
DYN_Customer Customer
99
DYN_Username API Username
1010
DYN_Password Secret
11-
Author: Gerd Naschenweng <https://github.com/magicdude4eva>
11+
Author: Gerd Naschenweng <@magicdude4eva>
1212
'
1313

1414
# Dyn Managed DNS API

dnsapi/dns_dynv6.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Options:
88
OptionsAlt:
99
KEY Path to SSH private key file. E.g. "/root/.ssh/dynv6"
1010
Issues: github.com/acmesh-official/acme.sh/issues/2702
11-
Author: StefanAbl
11+
Author: @StefanAbl
1212
'
1313

1414
dynv6_api="https://dynv6.com/api/v2"

dnsapi/dns_easydns.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Options:
77
EASYDNS_Token API Token
88
EASYDNS_Key API Key
99
Issues: github.com/acmesh-official/acme.sh/issues/2647
10-
Author: Neilpang, wurzelpanzer <[email protected]>
10+
Author: @Neilpang, wurzelpanzer <[email protected]>
1111
'
1212

1313
# API Documentation: https://sandbox.rest.easydns.net:3001/

0 commit comments

Comments
 (0)