From 833b33403f172f95b2384d92d60307049c1750ae Mon Sep 17 00:00:00 2001
From: Christian Breunig <christian@breunig.cc>
Date: Fri, 14 Jun 2024 12:36:43 +0200
Subject: op-mode: T6480: must call pki.py helper as root to work with ACME
 certificates

This is an addition to commit 65fba1cd2 ("op-mode: T6377: must call pki.py
helper as root to work with ACME certificates") which missed out the basic
"show pki" command, as the <command> XML node was deep down in the view.

(cherry picked from commit 9456113a202f98a777d44c756f7f51c95b1df027)
---
 op-mode-definitions/pki.xml.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/op-mode-definitions/pki.xml.in b/op-mode-definitions/pki.xml.in
index f76b4f4e1..254ef08cc 100644
--- a/op-mode-definitions/pki.xml.in
+++ b/op-mode-definitions/pki.xml.in
@@ -490,6 +490,7 @@
         <properties>
           <help>Show PKI x509 certificates</help>
         </properties>
+        <command>sudo ${vyos_op_scripts_dir}/pki.py --action show</command>
         <children>
           <leafNode name="ca">
             <properties>
@@ -570,7 +571,6 @@
             </children>
           </tagNode>
         </children>
-        <command>${vyos_op_scripts_dir}/pki.py --action show</command>
       </node>
     </children>
   </node>
-- 
cgit v1.2.3