summaryrefslogtreecommitdiff
path: root/scripts/vyatta-commit-revs.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-11-09 17:05:19 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-11-09 17:05:19 -0800
commitae39faa486737dd4459eb8d66ff5fa1dc1be5166 (patch)
tree97cca32f378b591d080cf331fdf203232bdb3647 /scripts/vyatta-commit-revs.pl
parent02791991cab3889b6a002907fa4f113a470b7838 (diff)
downloadvyatta-config-mgmt-ae39faa486737dd4459eb8d66ff5fa1dc1be5166.tar.gz
vyatta-config-mgmt-ae39faa486737dd4459eb8d66ff5fa1dc1be5166.zip
Add first pass commit-confirm and rollback (requires reboot for now).
Diffstat (limited to 'scripts/vyatta-commit-revs.pl')
-rwxr-xr-xscripts/vyatta-commit-revs.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-commit-revs.pl b/scripts/vyatta-commit-revs.pl
index 76937d1..9630f5a 100755
--- a/scripts/vyatta-commit-revs.pl
+++ b/scripts/vyatta-commit-revs.pl
@@ -50,8 +50,8 @@ if (! -d $archive_dir) {
system("sudo mkdir $archive_dir");
system("sudo chown vyatta:vyattacfg $archive_dir");
}
-my $cmd = 'cli-shell-api showCfg --show-active-only';
-system("$cmd > $tmp_config_file");
+my $cmd = '/opt/vyatta/sbin/vyatta-save-config.pl';
+system("$cmd $tmp_config_file > /dev/null");
if (compare($tmp_config_file, $last_commit_file) == 0) {
exit 0;
}