Skip to content

Instantly share code, notes, and snippets.

@boradwell
boradwell / install_eon_purge_data.sh
Last active February 11, 2019 03:09 — forked from chasebolt/install_eon_purge_data.sh
installs EON cron job that automatically purges oldest video when used space is greater than the MAX_USED_PERCENT limit
#!/bin/env bash
set -e
# install via curl
# curl -sL https://gist.github.com/chasebolt/fd5210b4c2a44a2b0db383162a66632c/raw/install_eon_purge_data.sh | bash
# create purge script
mkdir -p /data/local
cat <<'EOF' > /data/local/purge-data.sh
#!/bin/sh