Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
getssl / usr / share / getssl / dns_scripts / dns_del_pdns-mysql
Size: Mime:
#!/usr/bin/env bash

# You must either have a suitable ~/.my.cnf containing a user / pass
# for your mysql / mariadb database, OR you must uncomment the next line
# (which is a security risk; don't do it!) and adjust accordingly.

#CREDENTIALS="-uUSERNAME -pPASSWORD"

FQDN=$1

# If your database name is not powerdns, change it here.
DB="powerdns"

mysql -ss "${CREDENTIALS}" -e "DELETE FROM ${DB}.records WHERE \
 name = '_acme-challenge.${FQDN}';"

echo "DELETE FROM ${DB}.records WHERE name = '_acme-challenge.${FQDN}';"