Skip to content

Commit 614f215

Browse files
authored
Merge pull request #958 from pedro-hos/1.1.x-JBEAP-30876
JBEAP-30876 - (8.0.8) installation-manager >8.0.4 update fails with symbolic link
2 parents 9b98375 + 90b54c0 commit 614f215

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prospero-common/src/main/java/org/wildfly/prospero/actions/ApplyStageBackup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.io.File;
1010
import java.io.FileInputStream;
1111
import java.io.IOException;
12+
import java.nio.file.FileSystemException;
1213
import java.nio.file.FileVisitResult;
1314
import java.nio.file.Files;
1415
import java.nio.file.Path;
@@ -162,7 +163,7 @@ private static void backupFile(Path serverPath, Path backupPath) throws IOExcept
162163

163164
try {
164165
Files.createLink(backupPath, serverPath);
165-
} catch (UnsupportedOperationException e) {
166+
} catch (UnsupportedOperationException | FileSystemException e) {
166167
Files.copy(serverPath, backupPath);
167168
}
168169
}

0 commit comments

Comments
 (0)