unifios-utilities/cloudflare-ddns/on_boot.d/30-cloudflare-ddns.sh

16 lines
445 B
Bash
Raw Normal View History

2020-12-24 22:25:22 +00:00
#!/bin/sh
CONTAINER=cloudflare-ddns
# Starts a cloudflare ddns container that is deleted after it is stopped.
# All configs stored in /data/cloudflare-ddns
2020-12-24 22:25:22 +00:00
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 /data/cloudflare-ddns/config.json:/config.json \
2020-12-24 22:25:22 +00:00
timothyjmiller/cloudflare-ddns:latest
fi