From e5ce27bfe21cec960471ea1a5c833274c0e39825 Mon Sep 17 00:00:00 2001
From: Michiel de Jong <michiel@unhosted.org>
Date: Wed, 29 Oct 2014 16:49:00 +0000
Subject: [PATCH] revert untested merge of #18

---
 importers/gitpuller.sh        | 3 +++
 unit-files/gitpuller@.service | 8 +++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
 create mode 100755 importers/gitpuller.sh

diff --git a/importers/gitpuller.sh b/importers/gitpuller.sh
new file mode 100755
index 0000000..034a402
--- /dev/null
+++ b/importers/gitpuller.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cd /data/per-user/$USER/nginx/data/www-content && git pull
diff --git a/unit-files/gitpuller@.service b/unit-files/gitpuller@.service
index f85414f..e9c8490 100644
--- a/unit-files/gitpuller@.service
+++ b/unit-files/gitpuller@.service
@@ -1,8 +1,6 @@
 [Unit]
-Description=nginx git puller
+Description= git puller
 
 [Service]
-ExecStart=cd /data/per-user/%i/nginx/data/www-content && git pull
-
-[Install]
-WantedBy=nginx@%i.service
+Environment=USER=%i
+ExecStart=/data/indiehosters/importers/gitpuller.sh
-- 
GitLab