This script is meant to be run from a secure host where you don't mind having your UDM root ssh password stored as cleartext. The script will build an image (lazily) on this secure host that contains an expect
script that logs in to your UDM Pro and start (as needed) the pbrah/eap_proxy-udmpro:v1.1
image.
Env | Default | Desc |
---|---|---|
TARGET_HOST |
unifi | UDM Pro IP or hostname |
PASSWORD_FILE |
Required | Clear text UDM Pro root password file |
LOCAL_IMAGE_NAME |
eap_proxy-healthcheck |
Name of the image that is built on your secure host and executes the container with expect script against the UDM |
UDM_CONTAINER_NAME |
eap_proxy-udmpro |
Name of the eap_proxy container that should be running on the UDM |
EAP_PROXY_IMAGE |
pbrah/eap_proxy-udmpro:v1.1 |
Desired eap_proxy-udmpro Image |
I've got this running as a scheduled task on my Synology NAS (with docker installed):
$ PASSWORD_FILE=/root/.udm_password /var/services/homes/admin/eap_proxy-udmpro-health.sh
Thanks for your comment - I've updated to use
HC_CONTAINER_NAME
andUDM_CONTAINER_NAME
in the source script.