refactor: move proxy to monorepo

This commit is contained in:
2023-05-24 13:13:13 +02:00
parent 826eaa7825
commit 23d0c6971c
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"