From 9f461791743ec5799d8f0117f98b55e195475e45 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 6 Feb 2024 10:31:16 -0800 Subject: [PATCH] add dasel install, used to convert json to csv --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 6e665a2..7ebc34b 100755 --- a/install.sh +++ b/install.sh @@ -8,6 +8,12 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install pip pip install certbot-dns-powerdns +# 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.5.0/dasel_linux_amd64 +chmod 755 /usr/local/bin/dasel +# one liner to automatically get latest version. could also be used to update existing install +# curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o /usr/local/bin/dasel && chmod +x /usr/local/bin/dasel + 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