diff options
author | Simon Rettberg | 2019-03-05 09:44:10 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-05 09:44:10 +0100 |
commit | 9f9fff3228db723be772a84ad20dd9d0ebb178de (patch) | |
tree | 9c82edebb27237a103dfef4967925615f316b47d /src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java | |
parent | Fix typo (diff) | |
download | tmlite-bwlp-9f9fff3228db723be772a84ad20dd9d0ebb178de.tar.gz tmlite-bwlp-9f9fff3228db723be772a84ad20dd9d0ebb178de.tar.xz tmlite-bwlp-9f9fff3228db723be772a84ad20dd9d0ebb178de.zip |
[*IPxe*] Copy legacy files with .0 appended (compat)
Diffstat (limited to 'src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java')
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java b/src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java index 7002be6..6e2e297 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java +++ b/src/main/java/org/openslx/taskmanager/tasks/CompileIPxeLegacy.java @@ -159,7 +159,10 @@ public class CompileIPxeLegacy extends AbstractTask status.error = "Warning: could not create bootstick image"; } try { - FileUtils.copyFile( new File( "/opt/openslx/ipxe/src/bin/undionly.kkkpxe" ), new File( "/srv/openslx/tftp/ipxelinux.0" ) ); + // Delete first in case it was a symlink + File dest = new File( "/srv/openslx/tftp/ipxelinux.0" ); + FileUtils.deleteQuietly( dest ); + FileUtils.copyFile( new File( "/opt/openslx/ipxe/src/bin/undionly.kkkpxe" ), dest ); } catch ( Exception e ) { status.error = e.toString(); return false; |