summaryrefslogtreecommitdiff
path: root/computer-time-limit.service
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-11-13 17:52:45 +0100
committerErich Eckner <git@eckner.net>2024-11-13 17:52:45 +0100
commit245629ce0203931435534a2140d99ab0f08cd690 (patch)
tree399d0f03dcffd9c1edbeda0f1b010a69f1363138 /computer-time-limit.service
parentf83c6961e352f8147db74c6b1da680f2ea1234da (diff)
downloadcomputer-time-limit-245629ce0203931435534a2140d99ab0f08cd690.tar.xz
update git when shutting downHEADmaster
* apparently, the network is sometimes not yet up, when starting * so we update when shutting down (too) instead
Diffstat (limited to 'computer-time-limit.service')
-rw-r--r--computer-time-limit.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/computer-time-limit.service b/computer-time-limit.service
index f096f74..2e66528 100644
--- a/computer-time-limit.service
+++ b/computer-time-limit.service
@@ -3,6 +3,8 @@ Description=Limit the computer time
[Service]
ExecStart=/usr/src/skripte/computer-time-limit/computer-time-limit
+ExecStopPost=-/usr/bin/git -C /usr/src/skripte/computer-time-limit pull --ff-only
+ExecStopPost=-/usr/bin/git -C /usr/src/skripte/ykverify pull --ff-only
Restart=on-failure
[Install]