aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/quantifi-download.service10
-rw-r--r--scripts/quantifi-download.timer8
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/quantifi-download.service b/scripts/quantifi-download.service
new file mode 100644
index 00000000..cef5f390
--- /dev/null
+++ b/scripts/quantifi-download.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Download from quantifi
+
+[Service]
+Type=simple
+User=guillaume
+Group=guillaume
+ExecStart=/usr/bin/python download_reports.py
+WorkingDirectory=/home/guillaume/projects/quantifi
+EnvironmentFile=/etc/serenitas.conf \ No newline at end of file
diff --git a/scripts/quantifi-download.timer b/scripts/quantifi-download.timer
new file mode 100644
index 00000000..32dd0ed9
--- /dev/null
+++ b/scripts/quantifi-download.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Download reports from Quantifi every day at 7:00am
+[Timer]
+OnCalendar=Mon..Fri 7:00
+Unit=quantifi-download.service
+
+[Install]
+WantedBy=timers.target \ No newline at end of file