From: Christian Heller Date: Sat, 15 Dec 2018 01:06:09 +0000 (+0100) Subject: Regularly pull website repo on web server. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/conditions?a=commitdiff_plain;h=657452f2b4070dc2b23f1fe390f176b6f9a6e4ff;p=config Regularly pull website repo on web server. --- 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 index 0000000..ea32ec7 --- /dev/null +++ b/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service @@ -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 index 0000000..6a42507 --- /dev/null +++ b/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Pull website repo every minute + +[Timer] +OnCalendar=*-*-* *:*:00,15,30,45 + +[Install] +WantedBy=timers.target