From 031a43c717407ccb6bddf169b7f52171f8e509de Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 30 Mar 2015 19:26:18 -0400 Subject: [PATCH] removed domain-specific info from scripts --- swapwatch.sh | 10 +++++----- swapwatchinstall.sh | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/swapwatch.sh b/swapwatch.sh index c323927..2d3339a 100644 --- a/swapwatch.sh +++ b/swapwatch.sh @@ -3,8 +3,8 @@ #2.0.0 #rewrite by rlong -LOGDIR="/usr/local/lp/logs" -TMPFILE="/usr/local/lp/temp/swapwatch.results" +LOGDIR="/usr/local/sw/logs" +TMPFILE="/usr/local/sw/temp/swapwatch.results" #Create and clear TMPFILE touch $TMPFILE @@ -33,7 +33,7 @@ else then loadthreshold=5 swapthreshold=524288 - contact="support@liquidweb.com" + contact="support@DOMAIN.com" fi #check if we should run. either can trigger it @@ -69,7 +69,7 @@ else echo "" >> $TMPFILE echo "Process List" >> $TMPFILE echo "" >> $TMPFILE - /bin/ps faux >> $TMPFILE 2>&1 + /bin/ps faux >> $TMPFILE 2>&1 echo "" >> $TMPFILE echo "" >> $TMPFILE echo "Processes sorted by RESIDENT memory" >> $TMPFILE @@ -80,7 +80,7 @@ else #Send the email to the $contact address subject="[LW] Swapwatch.sh on $(hostname)" - contents=$(cat $TMPFILE) + contents=$(cat $TMPFILE) /usr/sbin/sendmail "$contact" <