HHH-18485 - Documentation symlinks on release

This commit is contained in:
Steve Ebersole 2024-08-14 08:14:59 -05:00
parent 8fbd201151
commit 16088f7f11
1 changed files with 2 additions and 2 deletions

View File

@ -107,11 +107,11 @@ public class UpdateSymLinksTask extends DefaultTask {
try (FileWriter commandFileWriter = new FileWriter( commandFile )) {
commandFileWriter.write( "cd " + serverBaseDir + "/stable\n" );
commandFileWriter.write( "rm orm\n" );
commandFileWriter.write( "-rm orm\n" );
commandFileWriter.write( String.format( Locale.ROOT, "ln -s ../orm/%s orm\n", releaseName ) );
commandFileWriter.write( "cd " + serverBaseDir + "/orm\n" );
commandFileWriter.write( "rm current\n" );
commandFileWriter.write( "-rm current\n" );
commandFileWriter.write( String.format( Locale.ROOT, "ln -s %s current\n", releaseName ) );
commandFileWriter.flush();