Skip to content
Snippets Groups Projects
Commit fa869d45 authored by Michiel de Jong's avatar Michiel de Jong
Browse files

call git pull directly from unit file

parent eea84a56
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
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
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