[FIX] ServerWrapper set start.sh executable

This commit is contained in:
Gravita 2022-05-18 23:57:21 +07:00
parent c75185f697
commit 4ff13a67b9

View file

@ -134,5 +134,10 @@ public void run() throws Exception {
writer.append(ServerWrapper.class.getName()); writer.append(ServerWrapper.class.getName());
writer.append("\n"); writer.append("\n");
} }
if(JVMHelper.OS_TYPE != JVMHelper.OS.MUSTDIE) {
if(!startScript.toFile().setExecutable(true)) {
LogHelper.error("Failed to set executable %s", startScript);
}
}
} }
} }