From fa869d45dbbb024d48d414bc60dfbe4f82714c69 Mon Sep 17 00:00:00 2001
From: Michiel de Jong <michiel@unhosted.org>
Date: Tue, 28 Oct 2014 10:13:31 +0000
Subject: [PATCH] call git pull directly from unit file

---
 importers/nginx-updater.sh          | 3 ---
 unit-files/nginx-gitpuller@.service | 3 +--
 2 files changed, 1 insertion(+), 5 deletions(-)
 delete mode 100755 importers/nginx-updater.sh

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