LaundrySorcery

Log | Files | Refs

commit 307e631efbd4afcc6b418406d9f9ef2e0657505d
parent 11b05b6acd6a8637a3f86a976213588b6e1e861e
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Fri, 29 Jun 2018 00:22:06 +0000

Add a cron.daily script for the laundryclustery

Diffstat:
dist/cron.daily/laundrysorcery_cluster.sh | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/dist/cron.daily/laundrysorcery_cluster.sh b/dist/cron.daily/laundrysorcery_cluster.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +LOG_FILE="/var/log/laundrysorcery.log" +CLUSTER_FILE="/var/www/clusters" + +sed '1d;$!b;/ /!d' "${LOG_FILE}" | /usr/local/bin/laundryclustery - > "${CLUSTER_FILE}"