[sysadmin-bin] Revert "Remove wildcards from the domain variable"
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Revert "Remove wildcards from the domain variable"
- Date: Mon, 3 Aug 2020 13:30:17 +0000 (UTC)
commit 85b8b02eee3de19087bf216e57260a66a73a7779
Author: Andrea Veri <averi redhat com>
Date: Mon Aug 3 15:30:04 2020 +0200
Revert "Remove wildcards from the domain variable"
This reverts commit 695a5a61c95e31e1cfc1e94e4b8f5100bdd5f280.
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 aa97461..f1ccdb8 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].strip('\*.')
+domain = sys.argv[1]
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 071f119..52ce912 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]