From efb598caafc20db278938ff3787e3674467e0663 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 16 Jun 2019 10:51:52 +0200 Subject: T1438: fix permissions when invoking 'show version' Accessing Kernel DMI data (under /sys/class/dmi) requires elevated permission and thus retrieving a Board Serial/UUID was not possible. version.py is now called via sudo to gether all facts. --- op-mode-definitions/version.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/version.xml b/op-mode-definitions/version.xml index 593785f7a..57931fdff 100644 --- a/op-mode-definitions/version.xml +++ b/op-mode-definitions/version.xml @@ -6,19 +6,19 @@ Show system version information - ${vyos_op_scripts_dir}/version.py + sudo ${vyos_op_scripts_dir}/version.py Show system version and some fun stuff - ${vyos_op_scripts_dir}/version.py --funny + sudo ${vyos_op_scripts_dir}/version.py --funny Show system version and versions of all packages - ${vyos_op_scripts_dir}/version.py --all + sudo ${vyos_op_scripts_dir}/version.py --all -- cgit v1.2.3