!/bin/bash

PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

date -R echo

dehydrated –cron –keep-going –config /etc/dehydrate/config-http01 dehydrated –cron –keep-going –config /etc/dehydrate/config-dns01 echo

dehydrated –cleanup –config /etc/dehydrate/config-http01 dehydrated –cleanup –config /etc/dehydrate/config-dns01 echo

reload is enough

nginx -s reload && echo nginx reloaded echo

this is not related to ssl but use that dehydrated listing anyhow

zones=cut -f1 -d ' ' /etc/dehydrated/domains-dns01 | grep -E '^[a-z0-9]' for zone in $zones; do echo zone $zone echo # self-verbose /etc/nsd/sign.ksh $zone echo done; unset zone echo

free-up some space

apt-get clean echo

date -R echo