Compare commits
4 Commits
everything
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
805f88401a | ||
|
|
8eb8e6ed28 | ||
|
|
e0afaa8aa1 | ||
| 44b5676415 |
@@ -2,7 +2,7 @@
|
||||
Description=Backup of NAME directory, disaster recovery
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Mon-Sun *-*-* 04:00:00
|
||||
OnCalendar= 04:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/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
|
||||
|
||||
import smtplib
|
||||
@@ -34,7 +38,7 @@ with open(logfile, "r") as log:
|
||||
|
||||
## Load mail config from secrets file.
|
||||
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_port = config['MAIL']['PORT']
|
||||
|
||||
Reference in New Issue
Block a user