From ce61e500abed4910b426485e8e3487e8261267f0 Mon Sep 17 00:00:00 2001 From: Robin KERDILES Date: Mon, 19 Jul 2021 13:30:18 +0200 Subject: [PATCH] Support environment variables when using DNS challenges with OVH --- dns_scripts/dns_add_ovh | 6 +++--- dns_scripts/dns_del_ovh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dns_scripts/dns_add_ovh b/dns_scripts/dns_add_ovh index 6c062a7..9791ed9 100755 --- a/dns_scripts/dns_add_ovh +++ b/dns_scripts/dns_add_ovh @@ -5,9 +5,9 @@ challenge="$2" # Please, do not forget to ask for your credentials at https://eu.api.ovh.com/createToken/ # permissions needed are /domain/zone/* in GET,POST,DELETE -applicationKey="YourAK" -applicationSecret="YourAS" -consumerKey="YourCK" +applicationKey=${OVH_APPLICATION_KEY:-''} +applicationSecret=${OVH_APPLICATION_SECRET:-''} +consumerKey=${OVH_CONSUMER_KEY:-''} topDomain=${domains[2]} subDomain=${domains[1]%%.} diff --git a/dns_scripts/dns_del_ovh b/dns_scripts/dns_del_ovh index bf7fe09..78fedf6 100755 --- a/dns_scripts/dns_del_ovh +++ b/dns_scripts/dns_del_ovh @@ -5,9 +5,9 @@ domains=($(echo "$1"|sed -e 's/^\(\([a-zA-Z0-9.-]*\?\)\.\)*\([a-zA-Z0-9-]\+\.[a- # Please, do not forget to ask for your credentials at https://eu.api.ovh.com/createToken/ # permissions needed are /domain/zone/* in GET,POST,DELETE -applicationKey="YourAK" -applicationSecret="YourAS" -consumerKey="YourCK" +applicationKey=${OVH_APPLICATION_KEY:-''} +applicationSecret=${OVH_APPLICATION_SECRET:-''} +consumerKey=${OVH_CONSUMER_KEY:-''} topDomain=${domains[2]} subDomain=${domains[1]%%.}