mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
16 lines
453 B
Bash
16 lines
453 B
Bash
|
#!/bin/sh
|
||
|
CONTAINER=cloudflare-ddns
|
||
|
|
||
|
# Starts a cloudflare ddns container that is deleted after it is stopped.
|
||
|
# All configs stored in /mnt/data/cloudflare-ddns
|
||
|
if podman container exists "$CONTAINER"; then
|
||
|
podman start "$CONTAINER"
|
||
|
else
|
||
|
podman run -i -d --rm \
|
||
|
--net=host \
|
||
|
--name "$CONTAINER" \
|
||
|
--security-opt=no-new-privileges \
|
||
|
-v /mnt/data/cloudflare-ddns/config.json:/config.json \
|
||
|
timothyjmiller/cloudflare-ddns:latest
|
||
|
fi
|