Skip to content

Commit

Permalink
letsencrypt: refactor with coderabbitai suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Goetz Goerisch <47734341+GoetzGoerisch@users.noreply.github.com>
  • Loading branch information
GoetzGoerisch committed Feb 23, 2025
1 parent fcc84ec commit 89a8267
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions letsencrypt/rootfs/etc/services.d/lets-encrypt/run
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ if [ "${CHALLENGE}" == "dns" ] && [ "${DNS_PROVIDER}" == "dns-azure" ]; then
cp -f "/share/${AZURE_CREDS}" "/data/azure_creds"
chmod 600 "/data/azure_creds"
else
bashio::log.info "Azure credentials file doesn't exist in folder share."
bashio::log.error "Azure credentials file '${AZURE_CREDS}' not found in /share directory"
exit 1
fi
PROVIDER_ARGUMENTS+=("--authenticator" "${DNS_PROVIDER}" "--${DNS_PROVIDER}-config" "/data/azure_creds")

Expand Down Expand Up @@ -152,7 +153,8 @@ elif [ "${CHALLENGE}" == "dns" ] && [ "${DNS_PROVIDER}" == "dns-google" ]; then
cp -f "/share/${GOOGLE_CREDS}" "/data/${GOOGLE_CREDS}"
chmod 600 "/data/${GOOGLE_CREDS}"
else
bashio::log.info "Google Credentials File doesn't exists in folder share."
bashio::log.error "Google credentials file '${GOOGLE_CREDS}' not found in /share directory"
exit 1
fi
PROVIDER_ARGUMENTS+=("--${DNS_PROVIDER}" "--${DNS_PROVIDER}-credentials" "/data/${GOOGLE_CREDS}")

Expand Down

0 comments on commit 89a8267

Please sign in to comment.