summaryrefslogtreecommitdiff
path: root/scripts/vyatta-config-mgmt.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-config-mgmt.pl')
-rwxr-xr-xscripts/vyatta-config-mgmt.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index b57db0e..5bd1b03 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -147,8 +147,8 @@ my ($cmd, $rc) = ('', 1);
if ($action eq 'add-uri') {
print "add-uri\n" if $debug;
my $config = new Vyatta::Config;
- $config->setLevel('system config-management remote-archive');
- my @uris = $config->returnValues('commit-uri');
+ $config->setLevel('system config-management commit-archive');
+ my @uris = $config->returnValues('location');
my $link = get_link($commit_uri_script);
if (scalar(@uris) >= 1 and ! -e $link) {
print "add link [$link]\n" if $debug;
@@ -161,8 +161,8 @@ if ($action eq 'add-uri') {
if ($action eq 'del-uri') {
print "del-uri\n" if $debug;
my $config = new Vyatta::Config;
- $config->setLevel('system config-management remote-archive');
- my @uris = $config->returnValues('commit-uri');
+ $config->setLevel('system config-management commit-archive');
+ my @uris = $config->returnValues('location');
if (scalar(@uris) <= 0) {
my $link = get_link($commit_uri_script);
print "remove link [$link]\n" if $debug;