#!/bin/sh

CRED_PATH=/etc/letsencrypt-inwx-cred

if [ -f ~/.config/letsencrypt-inwx-cred ]; then
	CRED_PATH=~/.config/letsencrypt-inwx-cred
fi

/usr/bin/letsencrypt-inwx create -c $CRED_PATH -d "_acme-challenge.$CERTBOT_DOMAIN" -v "$CERTBOT_VALIDATION"