summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2020-10-17 08:07:32 -0500
committerKim Hagen <kim@sentrium.io>2020-10-17 08:07:32 -0500
commit6d716ad460d5cab22e3fd85dea1acc5e18806ce0 (patch)
treeb817564e23651a17cc86db5ac4af3d3bfa80d6d8 /functions
parent6525387599f147649d9d3afdc7f48a4a997aa9e0 (diff)
downloadvyatta-cfg-6d716ad460d5cab22e3fd85dea1acc5e18806ce0.tar.gz
vyatta-cfg-6d716ad460d5cab22e3fd85dea1acc5e18806ce0.zip
Config: T2834: Config rollback function is broken due lack access to the config.boot
Diffstat (limited to 'functions')
-rw-r--r--functions/interpreter/vyatta-cfg-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run
index 5034284..d1aed3a 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 ()