Skip to content

Instantly share code, notes, and snippets.

@Servery
Servery / cloudkey-update-cert.sh
Created May 2, 2020 15:18 — forked from mattrude/cloudkey-update-cert.sh
Install a Let's Encrypt certificate on a UniFi Cloud Key controller
#!/bin/sh
HOSTNAME="unifi.lan.therudes.com"
EMAIL="matt@mattrude.com"
# Update the System before we start
rm -f /tmp/installed-packages.txt
echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
dpkg --get-selections |awk '{print $1}' |sed 's/:amd64//g' |sed 's/:armhf//g' > /tmp/installed-packages.txt
UPDATE="" # Start out with UPDATE being NULL