home · contact · privacy
Regularly pull website repo on web server.
[config] / all_new_2018 / linkable_etc_files / web / etc / systemd / system / pull_website.service
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'