From 54b48d019ca83023b61b6171e94e66b0c9d8fa8d Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 11 Jul 2015 15:19:36 +0100 Subject: vyatta-config-mgmt: set the saved config filename to use vyos Set the saved config filename to use vyos as it's default instead of vyatta if the host has no hostname set. --- scripts/vyatta-commit-push.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl index b85dd13..2264164 100755 --- a/scripts/vyatta-commit-push.pl +++ b/scripts/vyatta-commit-push.pl @@ -65,7 +65,7 @@ if (-e $last_push_file and compare($last_push_file, $tmp_push_file) == 0) { my $timestamp = strftime(".%Y%m%d_%H%M%S", localtime); my $hostname = hostname(); -$hostname = 'vyatta' if ! defined $hostname; +$hostname = 'vyos' if ! defined $hostname; my $save_file = "config.boot-$hostname" . $timestamp; print "Archiving config...\n"; -- cgit v1.2.3