summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-10-14 17:23:50 +0200
committerKarel Kočí <cynerd@email.cz>2018-10-14 17:23:50 +0200
commit4ddbc0c658e65fb14f4c22b63fff2e56032ccf7f (patch)
treec41888b91cfe17eea97b7c8c41239db9f65495ea
parenta237d34158be871f474bbbe1079d6c32fc178bbb (diff)
downloadlaminar-cnf-4ddbc0c658e65fb14f4c22b63fff2e56032ccf7f.tar.gz
laminar-cnf-4ddbc0c658e65fb14f4c22b63fff2e56032ccf7f.tar.bz2
laminar-cnf-4ddbc0c658e65fb14f4c22b63fff2e56032ccf7f.zip
Add laminar reasons for trigger
-rw-r--r--crontab12
-rwxr-xr-xssh-hook.sh2
2 files changed, 7 insertions, 7 deletions
diff --git a/crontab b/crontab
index 3cb80c8..eb802a9 100644
--- a/crontab
+++ b/crontab
@@ -1,6 +1,6 @@
-0 1 * * * laminarc queue alpine-amd64
-0 2 * * * laminarc queue turris4x-mox
-0 2 * * * laminarc queue turris4x-omnia
-0 2 * * * laminarc queue turris4x-turris
-0 2 * * * laminarc queue turris3x-omnia
-0 2 * * * laminarc queue turris3x-turris
+0 1 * * * LAMINAR_REASON="Periodic" laminarc queue alpine-amd64
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris4x-mox
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris4x-omnia
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris4x-turris
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris3x-omnia
+0 2 * * * LAMINAR_REASON="Periodic" laminarc queue turris3x-turris
diff --git a/ssh-hook.sh b/ssh-hook.sh
index 3643a2a..2980c03 100755
--- a/ssh-hook.sh
+++ b/ssh-hook.sh
@@ -18,6 +18,6 @@ if [ -z "$SSH_ORIGINAL_COMMAND" ]; then
else
echo "Laminar queue: $SSH_ORIGINAL_COMMAND"
- laminarc queue "$SSH_ORIGINAL_COMMAND"
+ LAMINAR_REASON="Git hook" laminarc queue "$SSH_ORIGINAL_COMMAND"
fi