1
0
mirror of https://github.com/shimunn/gitredditor.git synced 2023-11-17 18:42:43 +01:00
This commit is contained in:
shimunn 2019-05-06 00:00:04 +02:00
parent 7dd2619ae3
commit 5ead8f310d

20
gitedditor.service Normal file
View File

@ -0,0 +1,20 @@
[Unit]
Description=Mirrors reddit comments into a git repo
After=network-online.target
[Service]
Environment=REDDIT_USERNAME=root
Environment=ROOT_DIR=/srv/reddit
RestartSec=7200
ExecStart=/usr/bin/rkt --insecure-options=image run --dns 8.8.8.8 --volume volume-repo,kind=host,source=${ROOT_DIR}/${REDDIT_USERNAME} \
docker://repo.shimun.net/shimun/gitredditor
ExecStopPost=/bin/bash -c "cd ${ROOT_DIR}/${REDDIT_USERNAME} && /usr/bin/git push"
[Install]
WantedBy=multi-user.target