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