mv credentials to /usr/local/etc/pdns-certbot-credentials.ini, change certbot-dns-powerdns install to work with new /opt/certbot install
This commit is contained in:
parent
cc24bfeb4c
commit
07a996817e
21
install.sh
21
install.sh
|
@ -5,8 +5,15 @@
|
|||
# Copyright (c) 2022 Matthew Saunders Brown <matthewsaundersbrown@gmail.com>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install pip
|
||||
pip install certbot-dns-powerdns
|
||||
if [[ ! -x /opt/certbot/bin/pip ]]; then
|
||||
echo "NOTICE: This package requires certbot pip install in /opt/certbot"
|
||||
echo "Package letsencrypt-tools will provide this and should be installed first."
|
||||
echo "https://git.stack-source.com/msb/letsencrypt-tools"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# pyyaml==5.3.1 currently needed by certbot-dns-powerdns
|
||||
/opt/certbot/bin/pip install certbot-dns-powerdns pyyaml==5.3.1
|
||||
|
||||
# Install dasel from binary. Used to convert json data to csv
|
||||
wget --quiet --output-document=/usr/local/bin/dasel https://github.com/TomWright/dasel/releases/download/v2.7.0/dasel_linux_amd64
|
||||
|
@ -25,9 +32,9 @@ if [[ ! -f /usr/local/etc/pdns.conf ]]; then
|
|||
echo "Update /usr/local/etc/pdns.conf with your settings."
|
||||
fi
|
||||
|
||||
if [[ ! -f /root/.pdns-credentials.ini ]]; then
|
||||
echo "certbot_dns_powerdns:dns_powerdns_api_url =" > /root/.pdns-credentials.ini
|
||||
echo "certbot_dns_powerdns:dns_powerdns_api_key =" >> /root/.pdns-credentials.ini
|
||||
chmod 640 /root/.pdns-credentials.ini
|
||||
echo "Update /root/.pdns-credentials.ini with your settings (this is to be used with certbot-dns-powerdns)."
|
||||
if [[ ! -f /usr/local/etc/pdns-certbot-credentials.ini ]]; then
|
||||
echo "dns_powerdns_api_url =" > /usr/local/etc/pdns-certbot-credentials.ini
|
||||
echo "dns_powerdns_api_key =" >> /usr/local/etc/pdns-certbot-credentials.ini
|
||||
chmod 640 /usr/local/etc/pdns-certbot-credentials.ini
|
||||
echo "Update /usr/local/etc/pdns-certbot-credentials.ini with your settings (this is to be used with certbot-dns-powerdns)."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user