Skip to content
Snippets Groups Projects
Commit 4ba4ab08 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Merge pull request #18 from indiehosters/nginx-updater-in-unit-file

call git pull directly from unit file
parents eea84a56 fa869d45
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
cd /data/per-user/$USER/nginx/data/www-content && git pull
...@@ -5,8 +5,7 @@ Description=nginx git puller ...@@ -5,8 +5,7 @@ Description=nginx git puller
Before=nginx@%i.service Before=nginx@%i.service
[Service] [Service]
Environment=USER=%i ExecStart=cd /data/per-user/%i/nginx/data/www-content && git pull
ExecStart=/data/indiehosters/importers/nginx-updater.sh
[Install] [Install]
WantedBy=nginx@%i.service WantedBy=nginx@%i.service
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment