summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-log.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-05 22:31:48 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-06 08:33:33 +0100
commit9d02d32319f9328df618910a038ef580588e13c8 (patch)
treed68fb49a1d0141e106ba680e9e6279e717053475 /op-mode-definitions/show-log.xml.in
parentb8db1a9d7baf91b70c1b735e58710f1e2bc9fc7a (diff)
downloadvyos-1x-9d02d32319f9328df618910a038ef580588e13c8.tar.gz
vyos-1x-9d02d32319f9328df618910a038ef580588e13c8.zip
pki: T5886: add op-mode commands for log and renewal
* show log certbot * monitor log certbot * renew certbot
Diffstat (limited to 'op-mode-definitions/show-log.xml.in')
-rw-r--r--op-mode-definitions/show-log.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index b013bdfe4..a6ce04624 100644
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -38,6 +38,12 @@
</properties>
<command>journalctl --no-hostname --boot --quiet SYSLOG_FACILITY=10 SYSLOG_FACILITY=4</command>
</leafNode>
+ <leafNode name="certbot">
+ <properties>
+ <help>Show log for certbot</help>
+ </properties>
+ <command>if sudo test -f /var/log/letsencrypt/letsencrypt.log; then sudo cat /var/log/letsencrypt/letsencrypt.log; else echo "Cerbot log does not exist"; fi</command>
+ </leafNode>
<leafNode name="cluster">
<properties>
<help>Show log for Cluster</help>