2014-10-28 07:42:53 +00:00
|
|
|
[Unit]
|
2014-11-04 15:57:07 +00:00
|
|
|
Description=git puller
|
2014-10-28 07:42:53 +00:00
|
|
|
|
|
|
|
[Service]
|
2014-10-30 14:34:19 +00:00
|
|
|
Type=oneshot
|
2014-11-04 15:57:07 +00:00
|
|
|
ExecStart=/bin/bash -euxc ' \
|
2014-11-04 19:16:15 +00:00
|
|
|
app=`echo %p | cut -d"-" -f1,2`; \
|
|
|
|
cd /data/runtime/domains/%i/$app/www-content; \
|
2014-11-04 15:57:07 +00:00
|
|
|
git pull'
|