call git pull directly from unit file

This commit is contained in:
Michiel de Jong 2014-10-28 10:13:31 +00:00
parent eea84a5602
commit fa869d45db
2 changed files with 1 additions and 5 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
cd /data/per-user/$USER/nginx/data/www-content && git pull

View file

@ -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