From 0847226ee11fa6914c15200b4fb137370db60455 Mon Sep 17 00:00:00 2001 From: Mark Steward Date: Sat, 3 Feb 2024 22:50:24 +0000 Subject: [PATCH] Redundant scripts --- archive-var.sh | 20 -------------------- reconcile.sh | 10 ---------- 2 files changed, 30 deletions(-) delete mode 100755 archive-var.sh delete mode 100755 reconcile.sh diff --git a/archive-var.sh b/archive-var.sh deleted file mode 100755 index d450ef022..000000000 --- a/archive-var.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -DEBUG=${DEBUG:-false} - -if [[ "${PWD##*/}" != 'var' ]]; then - echo This script should be run inside the var directory. - exit 1 -fi - -find -maxdepth 1 -mtime +5 \( -name '*.log' -o -name '*.ofx' \)|while read -r f; do - d=$f - d=${d%.ofx} # remove suffixes - d=${d%.log} - d=${d##*-} # strip hyphen prefixes - d=${d:0:6} # get month - if [[ "$d" =~ ^[0-9]{6}$ ]]; then - $DEBUG && echo "Moving $f to $d" - mkdir -p $d && mv "$f" $d - fi -done diff --git a/reconcile.sh b/reconcile.sh deleted file mode 100755 index 868da44d3..000000000 --- a/reconcile.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -dt=$(date '+%Y%m%d') -cd /var/www/www.emfcamp.org -cp ~russ/data.ofx var/data-$dt.ofx -cp ~russ/data-eur.ofx var/data-eur-$dt.ofx -ln -sf data-$dt.ofx var/data.ofx -ln -sf data-eur-$dt.ofx var/data-eur.ofx -make loadofx >>var/loadofx-$dt.log 2>&1 -make reallyreconcile >>var/reconcile-$dt.log 2>&1