mirror of
https://git.proxmox.com/git/proxmox-acme
synced 2025-08-17 21:11:11 +00:00
add shellscript to find needed functions not provided by proxmox-acme
based on the heuristic I used a while ago. Adapted to catch the functions missed the last time. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
0f730fda49
commit
39a1c95666
13
check-missing-functions
Executable file
13
check-missing-functions
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# functions already in src/proxmox-acme
|
||||||
|
PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||||
|
src/proxmox-acme | sed -r 's/\|$//')
|
||||||
|
# functions defined in all plugins
|
||||||
|
LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
|
||||||
|
src/acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
|
||||||
|
|
||||||
|
grep -E '\b_[a-zA-Z0-9_-]+ ' src/acme.sh/dnsapi/dns_*sh | \
|
||||||
|
grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^src/acme.sh/dnsapi/.*sh: *#"
|
Loading…
Reference in New Issue
Block a user