mirror of
https://github.com/shimunn/gitredditor.git
synced 2023-11-17 18:42:43 +01:00
enhanced .service
This commit is contained in:
parent
e7751fa4b1
commit
64d1b721ca
@ -13,7 +13,9 @@ Environment=ROOT_DIR=/srv/reddit
|
|||||||
RestartSec=7200
|
RestartSec=7200
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
ExecStart=/usr/bin/rkt --insecure-options=image run --dns 8.8.8.8 --volume volume-repo,kind=host,source=${ROOT_DIR}/${GITREDDITOR_U} \
|
ExecStartPre=/bin/bash -c "cd ${ROOT_DIR}/${GITREDDITOR_U} && /usr/bin/git pull"
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/rkt --insecure-options=image run --inherit-env --dns 8.8.8.8 --volume volume-repo,kind=host,source=${ROOT_DIR}/${GITREDDITOR_U} \
|
||||||
docker://repo.shimun.net/shimun/gitredditor
|
docker://repo.shimun.net/shimun/gitredditor
|
||||||
|
|
||||||
ExecStopPost=/bin/bash -c "cd ${ROOT_DIR}/${GITREDDITOR_U} && /usr/bin/git push"
|
ExecStopPost=/bin/bash -c "cd ${ROOT_DIR}/${GITREDDITOR_U} && /usr/bin/git push"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user