call git pull directly from unit file
This commit is contained in:
parent
eea84a5602
commit
fa869d45db
2 changed files with 1 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /data/per-user/$USER/nginx/data/www-content && git pull
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue