diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-07-11 15:19:36 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-07-11 15:19:36 +0100 |
commit | 54b48d019ca83023b61b6171e94e66b0c9d8fa8d (patch) | |
tree | 54c81927ebd3ab379242e6a33d19dd77d557e279 | |
parent | 6266be88206dffc82e8522e97db6718657443e0e (diff) | |
download | vyatta-config-mgmt-54b48d019ca83023b61b6171e94e66b0c9d8fa8d.tar.gz vyatta-config-mgmt-54b48d019ca83023b61b6171e94e66b0c9d8fa8d.zip |
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.
-rwxr-xr-x | scripts/vyatta-commit-push.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |