refactor: move proxy to monorepo

This commit is contained in:
2023-03-14 17:13:57 +01:00
parent 49d6db178c
commit ae053147d4
34 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
MAILTO=`cat ../config/RECIPIENTS`
UNIT=$1
EXTRA=""
for e in "${@:2}"; do
EXTRA+="$e"$'\n'
done
UNITSTATUS=$(systemctl status --lines=50 $UNIT)
ssmtp $MAILTO <<EndOfMessage
To:$MAILTO
Subject:Status mail for unit: $UNIT
Status report for unit: $UNIT
$EXTRA
$UNITSTATUS
EndOfMessage
echo -e "Status mail sent to: $MAILTO for unit: $UNIT"