Firstly, create a script that will check if the desired IP address is available.
sudo nano /usr/local/bin/check_netmaker_ip.sh
Add the following content:
#!/bin/sh
| version: "3.9" | |
| services: | |
| tunnel: | |
| container_name: cloudflared-tunnel | |
| image: cloudflare/cloudflared | |
| restart: unless-stopped | |
| command: tunnel run | |
| environment: | |
| - TUNNEL_TOKEN=yourtoken |
| sudo apt-get remove docker docker-engine docker.io containerd runc && sudo apt-get update && sudo apt-get install ca-certificates curl gnupg && sudo mkdir -m 0755 -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
| version: '3' | |
| services: | |
| watchtower: | |
| image: containrrr/watchtower | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| command: --label-enable --cleanup --interval 3600 | |
| restart: on-failure | |
| labels: | |
| com.centurylinklabs.watchtower.enable: true |
The issue is described here: home-assistant/core#112298
docker exec -it homeassistant bashvi /usr/local/lib/python3.12/site-packages/pyunifiprotect/data/types.py| /** | |
| * Script for scriptable to get the current capacity of McFit Gyms | |
| */ | |
| let gymId = 1613591080 | |
| let param = args.widgetParameter | |
| if (param != null && param.length > 0) { | |
| gymId = param | |
| } | |
| const currentGymCapacity = await fetchGymCapacity(gymId) |
| #!/bin/bash | |
| # Variables | |
| ilo_user="#" # Replace with your iLO username | |
| ilo_pass="#" # Replace with your iLO password | |
| ilo_host="#" # Replace with your iLO hostname or IP address | |
| # Options to enable older key exchange and host key methods | |
| ssh_options="-o KexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o StrictHostKeyChecking=no" |
| #!/usr/bin/env python3 | |
| import sys | |
| import os | |
| def main(): | |
| raw_password = os.environ.get('SAB_PASSWORD', '') | |
| job_name = os.environ.get('SAB_FILENAME', 'Job') | |
| if ".onion" in raw_password: | |
| clean_password = raw_password.split(".onion")[0] |