# =========================================================
# Shell Commands - ausgelagerte Befehle
# Pfad: /config/custom/shell_command/shell_commands.yaml
# =========================================================

cleanup_reolink_snaps: >-
  bash -lc "find /media/reolink_snapshot -type f -name '*.jpg' -mtime +7 -delete"

truncate_influx_entities: >-
  bash -lc ': > /config/custom/influxdb/influxdb_entities.yaml'

write_influx_entities: |
  bash -lc 'cat > /config/custom/influxdb/influxdb_entities.yaml <<EOF
  {{ content }}
  EOF'
