changed sender name

This commit is contained in:
Hendrik Schutter 2021-12-26 17:54:40 +01:00
parent 988ec97833
commit 8b31476644
1 changed files with 16 additions and 15 deletions

View File

@ -1,29 +1,29 @@
#! /bin/bash
### GENERAL SETTINGS ###
DEBUG="true"
DEBUG="true" #don't send mail if in debug mode
timestampFolder="index" #folder for reading timestamp
backupFolder="./backups" #directory that contains all repos
backupFolder="/mnt/hdd/backups/" #directory that contains all repos
########################
### eMail ###
receiverEmail="admin@coptersicht.de"
senderEmail="autobackupwatchdog@coptersicht.de"
senderName="AutoBackup Watchdog"
receiverEmail="localhorst@mosad.xyz"
senderEmail="____#@mosad.xyz"
senderName="AutoBackupWatchdog" #no spaces
########################
######### REPO SETTINGS #########
repos_name[0]=" first backup repo"
repos_directory[0]="first_repo"
repos_name[0]="my home server"
repos_directory[0]="homeserver/"
repos_interval[0]=21600 #sec
repos_interval_tolerance[0]=10 #%
#repos_name[1]="second backup repo"
#repos_directory[1]="second_repo"
#repos_name[1]="another backup repo"
#repos_directory[1]="another_repo"
#repos_interval[1]=21600 #sec
#repos_interval_tolerance[1]=10 #%
#repos_name[2]=" another backup repo"
#repos_name[2]="another backup repo"
#repos_directory[2]="another_repo"
#repos_interval[2]=21600 #sec
#repos_interval_tolerance[2]=10 #%
@ -91,8 +91,8 @@ Content-Type: text/html; charset="utf8
</div>
</body>
<footer>
<p>Version: 0.2</p>
<p>Author: <a href="mailto:hendrik.schutter@coptersicht.de">hendrik.schutter@coptersicht.de</a></p>
<p>Version: 0.2.1</p>
<p>Author: <a href="mailto:localhorst@mosad.xyz">localhorst@mosad.xyz</a></p>
</footer>
EOL
@ -124,7 +124,7 @@ EOL
cat >> mail_content.txt <<EOL
Subject: AutoBackup Failure "${repos_name[i]}"
From: $senderEmail
Content-Type: text/html; charset="utf8
Content-Type: text/html; charset="utf8"
<head>
<style>
h1{
@ -161,8 +161,8 @@ Content-Type: text/html; charset="utf8
</div>
</body>
<footer>
<p>Version: 0.2</p>
<p>Author: <a href="mailto:hendrik.schutter@coptersicht.de">hendrik.schutter@coptersicht.de</a></p>
<p>Version: 0.2.1</p>
<p>Author: <a href="mailto:localhorst@mosad.xyz">localhorst@mosad.xyz</a></p>
</footer>
EOL
@ -176,3 +176,4 @@ EOL
done
echo " "
echo "Finished"