1
0
mirror of https://github.com/greenpau/caddy-security.git synced 2025-04-18 08:04:02 +03:00

upgrade to github.com/greenpau/go-authcrunch v1.1.7

This commit is contained in:
Paul Greenberg 2025-03-25 11:14:12 -04:00
parent 1a88ee7ef0
commit 2470b0bf43
3 changed files with 15 additions and 7 deletions

View File

@ -20,10 +20,14 @@ V2="v1.1.8"
P1=$(echo ${P1} | sed 's/\//%2F/g')
P2=$(echo ${P2} | sed 's/\//%2F/g')
#echo "package ${P1} ${V1}"
#echo "package ${P2} ${V2}"
echo "package ${P1} ${V1}"
echo "package ${P2} ${V2}"
sed -i '\/caddyserver.com\/api\/download/d' README.md
if [[ "$(uname -s)" == "Darwin" ]]; then
sed -i '' -e '/\/caddyserver.com\/api\/download/d' README.md
else
sed -i '/\/caddyserver.com\/api\/download/d' README.md
fi
DLOAD_LINE=$(grep -Fn 'Download Caddy with the plugins enabled' README.md | cut -d":" -f1)
DLOAD_LINE=$((DLOAD_LINE+1))
@ -34,6 +38,10 @@ for OS_ID in "${!_TARGET_OS[@]}"; do
ARCH_NAME=${_TARGET_ARCH[$ARCH_ID]};
HREF="https://caddyserver.com/api/download?os=${OS_NAME}&arch=${ARCH_NAME}&p=${P1}%40${V1}&p=${P2}%40${V2}";
HREF_LINK="* <a href=\"${HREF}\" target=\"_blank\">${OS_NAME}/${ARCH_NAME}</a>";
sed -i ''"${DLOAD_LINE}"' i '"${HREF_LINK}"'' README.md
if [[ "$(uname -s)" == "Darwin" ]]; then
gsed -i ''"${DLOAD_LINE}"' i '"${HREF_LINK}"'' README.md
else
sed -i ''"${DLOAD_LINE}"' i '"${HREF_LINK}"'' README.md
fi
done
done

2
go.mod
View File

@ -7,7 +7,7 @@ require (
github.com/google/go-cmp v0.7.0
github.com/google/uuid v1.6.0
github.com/greenpau/caddy-trace v1.1.13
github.com/greenpau/go-authcrunch v1.1.6
github.com/greenpau/go-authcrunch v1.1.7
github.com/tidwall/gjson v1.17.1
go.uber.org/zap v1.27.0
)

4
go.sum
View File

@ -248,8 +248,8 @@ github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+
github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM=
github.com/greenpau/caddy-trace v1.1.13 h1:sQveqzDt+O1/ZpfpJddXJ5S2UHtcvSVDKZRgZ9wGo/k=
github.com/greenpau/caddy-trace v1.1.13/go.mod h1:K6lD24evCjgCFqz8KYJbXMvMAQ8wFEG0+Z4EEqDU1dA=
github.com/greenpau/go-authcrunch v1.1.6 h1:VOHbq6rLUKgtlvpZkejcFvXpDDguugitnnkZqPgqiYA=
github.com/greenpau/go-authcrunch v1.1.6/go.mod h1:aPiScpG/0L8a1A+CfqO8F1BXMV1aHmqioVG5JhDzk6c=
github.com/greenpau/go-authcrunch v1.1.7 h1:kaCQicME4f7IngAH2/OsJo0edlcjE4Gz08Mc7cEDgOk=
github.com/greenpau/go-authcrunch v1.1.7/go.mod h1:aPiScpG/0L8a1A+CfqO8F1BXMV1aHmqioVG5JhDzk6c=
github.com/greenpau/versioned v1.0.30 h1:QILUlfTSyJnhT8Gw9lLonZmuP5ahNQoJizw7mo30IQ4=
github.com/greenpau/versioned v1.0.30/go.mod h1:rtFCvaWWNbMH4CJnje/xicgmrM63j++rUh5juSu0k/A=
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=