mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 02:57:38 +03:00
cluster0: QR verify email attachment, libqrencode-tools, src=qr analytics
ShortLinksRepository mail pack + renderQrPng; cluster APK includes libqrencode-tools; deploy-ac-url-shortener ensures QR CLI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,5 +24,7 @@ else
|
||||
git clone --branch "$BRANCH" --depth 1 "$ORIGIN" "$URL_ROOT"
|
||||
fi
|
||||
|
||||
apk add --no-cache libqrencode libqrencode-tools >/dev/null 2>&1 || true
|
||||
|
||||
chown -R nginx:nginx "$URL_ROOT" 2>/dev/null || true
|
||||
log "deploy-ac-url-shortener_ok $(host_short) $(git -C "$URL_ROOT" rev-parse --short HEAD)"
|
||||
|
||||
@@ -28,7 +28,10 @@ $ok = AuthMailer::sendVerifyEmail($to, $long);
|
||||
echo $ok ? "mail_ok" : "mail_fail";
|
||||
' 2>&1)" || _out="mail_fail"
|
||||
|
||||
log "$_out to=$TO long=$_long"
|
||||
log "$_out to=$TO short=$(echo "$_long" | sed 's/token=.*/token=…/')"
|
||||
if echo "$_out" | grep -q mail_ok; then
|
||||
log "hint: expect s.f0xx.org short link + verify-email-qr.png attachment (QR encodes …&src=qr)"
|
||||
fi
|
||||
case "$_out" in
|
||||
mail_ok) exit 0 ;;
|
||||
*) exit 1 ;;
|
||||
|
||||
Reference in New Issue
Block a user