From 1a1e9d51c095fe4e84be9d17453385379b468ddf Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Sat, 17 Oct 2020 08:07:32 -0500 Subject: Config: T2834: Config rollback function is broken due lack access to the config.boot --- functions/interpreter/vyatta-cfg-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index e0bcfaf..91d26d1 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -205,7 +205,7 @@ vyatta_config_rollback () echo "Error: must include a revision # to rollback to" return 1; fi - ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=rollback --revnum "$@" + sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=rollback --revnum "$@" } shutdown () -- cgit v1.2.3