home · contact · privacy
Regularly pull website repo on web server.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 15 Dec 2018 01:06:09 +0000 (02:06 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 15 Dec 2018 01:06:09 +0000 (02:06 +0100)
all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service [new file with mode: 0644]
all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer [new file with mode: 0644]

diff --git a/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service b/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service
new file mode 100644 (file)
index 0000000..ea32ec7
--- /dev/null
@@ -0,0 +1,5 @@
+[Unit]
+Description=Pull website repo
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c 'cd /var/www && git pull'
diff --git a/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer b/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer
new file mode 100644 (file)
index 0000000..6a42507
--- /dev/null
@@ -0,0 +1,8 @@
+[Unit]
+Description=Pull website repo every minute
+
+[Timer]
+OnCalendar=*-*-* *:*:00,15,30,45
+
+[Install]
+WantedBy=timers.target