fix gitpuller after revert
This commit is contained in:
parent
e5ce27bfe2
commit
0e88aa2418
9 changed files with 21 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -3,4 +3,5 @@ Description= git puller
|
|||
|
||||
[Service]
|
||||
Environment=USER=%i
|
||||
Environment=APP=nginx
|
||||
ExecStart=/data/indiehosters/importers/gitpuller.sh
|
|
@ -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
|
||||
|
|
2
unit-files/wordpress-subdir-gitpuller@.path
Normal file
2
unit-files/wordpress-subdir-gitpuller@.path
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Path]
|
||||
PathExists=/data/per-user/%i/wordpress-subdir/data/GITURL
|
7
unit-files/wordpress-subdir-gitpuller@.service
Normal file
7
unit-files/wordpress-subdir-gitpuller@.service
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description= git puller
|
||||
|
||||
[Service]
|
||||
Environment=USER=%i
|
||||
Environment=APP=wordpress-subdir
|
||||
ExecStart=/data/indiehosters/importers/gitpuller.sh
|
8
unit-files/wordpress-subdir-gitpuller@.timer
Normal file
8
unit-files/wordpress-subdir-gitpuller@.timer
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Run git puller every 10 minutes
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue