summaryrefslogtreecommitdiff
path: root/scripts/vyatta-image-tools.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-image-tools.pl')
-rwxr-xr-xscripts/vyatta-image-tools.pl4
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");
}