From bc4a699e49a4f5b810ef6249ae627b4defa0c992 Mon Sep 17 00:00:00 2001 From: Nicolas Rosset Date: Tue, 6 Sep 2022 15:39:15 +0200 Subject: [PATCH] Try to make it work with DragonFlyBSD --- dnsapi/dns_me.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dnsapi/dns_me.sh b/dnsapi/dns_me.sh index 58c3a230..3b587223 100644 --- a/dnsapi/dns_me.sh +++ b/dnsapi/dns_me.sh @@ -134,10 +134,7 @@ _me_rest() { data="$3" _debug "$ep" - cdate=$( - LC_TIME=en_US.utf8 - LANG=C date -u +"%a, %d %b %Y %T %Z" - ) + cdate=$(LC_TIME='en_US.utf8' LANG='C' date -u +"%a, %d %b %Y %T %Z") hmac=$(printf "%s" "$cdate" | _hmac sha1 "$(printf "%s" "$ME_Secret" | _hex_dump | tr -d " ")" hex)