diff --git a/importers/gitpuller.sh b/importers/gitpuller.sh new file mode 100755 index 0000000000000000000000000000000000000000..034a40230396eca6cbdc19d9194c219b7a5603b8 --- /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 f85414fa5d3bad0256ac63f28eb9d1299c19d59f..e9c84909e0b41ae672779b5b4c7749febe258823 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