← Back to team overview

livepatch-charmers team mailing list archive

[Merge] ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master

 

Barry Price has proposed merging ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master.

Commit message:
Don't generate cron spam on containers/unsuported architectures

Requested reviews:
  Livepatch charm developers (livepatch-charmers)
Related bugs:
  Bug #1802805 in Canonical Livepatch Charm: "hook failures for unsupported/containers"
  https://bugs.launchpad.net/canonical-livepatch-charm/+bug/1802805

For more details, see:
https://code.launchpad.net/~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm/+merge/358613
-- 
Your team Livepatch charm developers is requested to review the proposed merge of ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master.
diff --git a/files/check_canonical-livepatch.cron b/files/check_canonical-livepatch.cron
index 6457c12..05d4515 100644
--- a/files/check_canonical-livepatch.cron
+++ b/files/check_canonical-livepatch.cron
@@ -1,2 +1,2 @@
 # check_canonical-livepatch
-17,47 * * * * root /snap/bin/canonical-livepatch status > /var/lib/nagios/canonical-livepatch-status.txt
+17,47 * * * * root [ -x /snap/bin/canonical-livepatch ] && /snap/bin/canonical-livepatch status > /var/lib/nagios/canonical-livepatch-status.txt

References