Compare commits
4 Commits
everything
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
805f88401a | ||
|
|
8eb8e6ed28 | ||
|
|
e0afaa8aa1 | ||
| 44b5676415 |
@@ -2,7 +2,7 @@
|
|||||||
Description=Backup of NAME directory, disaster recovery
|
Description=Backup of NAME directory, disaster recovery
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=Mon-Sun *-*-* 04:00:00
|
OnCalendar= 04:00
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
# Copyright 2021 Adam Rabjerg
|
||||||
|
# Licensed under GNU GPL-3.0-or-later
|
||||||
|
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
# Imports
|
# Imports
|
||||||
|
|
||||||
import smtplib
|
import smtplib
|
||||||
@@ -34,7 +38,7 @@ with open(logfile, "r") as log:
|
|||||||
|
|
||||||
## Load mail config from secrets file.
|
## Load mail config from secrets file.
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read('/home/adam/scripts/secrets.env')
|
config.read('/home/user/git/disaster-recovery/secrets.env')
|
||||||
|
|
||||||
server_name = config['MAIL']['SERVER']
|
server_name = config['MAIL']['SERVER']
|
||||||
server_port = config['MAIL']['PORT']
|
server_port = config['MAIL']['PORT']
|
||||||
|
|||||||
Reference in New Issue
Block a user