[sysadmin-bin] We're good to go with no wildcards on domain variables.
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] We're good to go with no wildcards on domain variables.
- Date: Mon, 3 Aug 2020 14:14:59 +0000 (UTC)
commit bc308e56c53ac50cc2d97d5fae70e763ba98e9a5
Author: Andrea Veri <averi redhat com>
Date: Mon Aug 3 15:47:51 2020 +0200
We're good to go with no wildcards on domain variables.
This reverts commit 85b8b02eee3de19087bf216e57260a66a73a7779.
letsencrypt/letsencrypt_dns_add.py | 2 +-
letsencrypt/letsencrypt_dns_del.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/letsencrypt/letsencrypt_dns_add.py b/letsencrypt/letsencrypt_dns_add.py
index f1ccdb8..aa97461 100755
--- a/letsencrypt/letsencrypt_dns_add.py
+++ b/letsencrypt/letsencrypt_dns_add.py
@@ -6,7 +6,7 @@ import re
import git
import shutil
-domain = sys.argv[1]
+domain = sys.argv[1].strip('\*.')
token = sys.argv[2]
extracted_tld = '.'.join(domain.split('.')[-2:])
git_url = '/git/dns.git'
diff --git a/letsencrypt/letsencrypt_dns_del.sh b/letsencrypt/letsencrypt_dns_del.sh
index 52ce912..071f119 100755
--- a/letsencrypt/letsencrypt_dns_del.sh
+++ b/letsencrypt/letsencrypt_dns_del.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-domain=$1
+domain=${1//\*\./ }
token=$2
sans=${SANS//,/ }
sortedsans=(`for i in ${sans[@]//\*\./ }; do echo $i ; done | sort | uniq`)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]