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

fix gitpuller after revert

parent e5ce27bf
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
cd /data/per-user/$USER/nginx/data/www-content && git pull cd /data/per-user/$USER/$APP/data/www-content && git pull
File moved
...@@ -3,4 +3,5 @@ Description= git puller ...@@ -3,4 +3,5 @@ Description= git puller
[Service] [Service]
Environment=USER=%i Environment=USER=%i
Environment=APP=nginx
ExecStart=/data/indiehosters/importers/gitpuller.sh ExecStart=/data/indiehosters/importers/gitpuller.sh
File moved
...@@ -5,7 +5,7 @@ Description=%p-%i ...@@ -5,7 +5,7 @@ Description=%p-%i
Requires=docker.service Requires=docker.service
Requires=%p-importer@%i.service Requires=%p-importer@%i.service
Requires=%p-discovery@%i.service Requires=%p-discovery@%i.service
Wants=gitpuller@%i.service Wants=%p-gitpuller@%i.service
# Dependency ordering # Dependency ordering
After=docker.service After=docker.service
......
[Path]
PathExists=/data/per-user/%i/wordpress-subdir/data/GITURL
[Unit]
Description= git puller
[Service]
Environment=USER=%i
Environment=APP=wordpress-subdir
ExecStart=/data/indiehosters/importers/gitpuller.sh
[Unit]
Description=Run git puller every 10 minutes
[Timer]
OnUnitActiveSec=10min
[Install]
WantedBy=timers.target
...@@ -7,7 +7,7 @@ Requires=etcd.service ...@@ -7,7 +7,7 @@ Requires=etcd.service
Requires=mysql@%i.service Requires=mysql@%i.service
Requires=%p-importer@%i.service Requires=%p-importer@%i.service
Requires=%p-discovery@%i.service Requires=%p-discovery@%i.service
Wants=gitpuller@%i.service Wants=%p-gitpuller@%i.service
# Dependency ordering # Dependency ordering
After=docker.service After=docker.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