diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-28 12:51:49 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-28 12:51:49 -0500 |
commit | e0c3601ff8bbb8da057b7784bf096ca088012556 (patch) | |
tree | 9fcfeeb5ad0a424999f2f7cd8a13951ce2ffe41d /scripts/vyatta-image-tools.pl | |
parent | fba0824c88267e0c41efa36a4fde05c8ee5daa0a (diff) | |
download | vyatta-op-e0c3601ff8bbb8da057b7784bf096ca088012556.tar.gz vyatta-op-e0c3601ff8bbb8da057b7784bf096ca088012556.zip |
Use proper directory for disk-installs. Do completion of directory names only in clone system config since disk installs will have other files in /live/image/boot
Diffstat (limited to 'scripts/vyatta-image-tools.pl')
-rwxr-xr-x | scripts/vyatta-image-tools.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index 067ab28..2973c3f 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -197,7 +197,9 @@ sub update { if (y_or_n("$msg")){ system("rm -rf $to/config.preclone"); system("mv $to/config $to/config.preclone") if ( -d "$to/config" ); - if (rsync("$from/config", $to) > 0){ + my $confdir="config"; + $confdir="opt/vyatta/etc/config" if ( $f_topdir eq "disk-install" ); + if (rsync("$from/$confdir", $to) > 0){ print "Clone Failed!\nRestoring old config\n"; system("mv $to/config.preclone $to/config"); } |