fix gitpuller after revert

This commit is contained in:
Michiel de Jong 2014-10-29 17:01:14 +00:00
parent e5ce27bfe2
commit 0e88aa2418
9 changed files with 21 additions and 3 deletions

View file

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

View file

@ -3,4 +3,5 @@ Description= git puller
[Service]
Environment=USER=%i
Environment=APP=nginx
ExecStart=/data/indiehosters/importers/gitpuller.sh

View file

@ -5,7 +5,7 @@ Description=%p-%i
Requires=docker.service
Requires=%p-importer@%i.service
Requires=%p-discovery@%i.service
Wants=gitpuller@%i.service
Wants=%p-gitpuller@%i.service
# Dependency ordering
After=docker.service

View file

@ -0,0 +1,2 @@
[Path]
PathExists=/data/per-user/%i/wordpress-subdir/data/GITURL

View file

@ -0,0 +1,7 @@
[Unit]
Description= git puller
[Service]
Environment=USER=%i
Environment=APP=wordpress-subdir
ExecStart=/data/indiehosters/importers/gitpuller.sh

View file

@ -0,0 +1,8 @@
[Unit]
Description=Run git puller every 10 minutes
[Timer]
OnUnitActiveSec=10min
[Install]
WantedBy=timers.target

View file

@ -7,7 +7,7 @@ Requires=etcd.service
Requires=mysql@%i.service
Requires=%p-importer@%i.service
Requires=%p-discovery@%i.service
Wants=gitpuller@%i.service
Wants=%p-gitpuller@%i.service
# Dependency ordering
After=docker.service