From 4ff13a67b9045b89661608f36d3adf57c98838eb Mon Sep 17 00:00:00 2001 From: Gravita Date: Wed, 18 May 2022 23:57:21 +0700 Subject: [PATCH] [FIX] ServerWrapper set start.sh executable --- .../pro/gravit/launcher/server/setup/ServerWrapperSetup.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java index 37e1f8b7..6a4e6047 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java @@ -134,5 +134,10 @@ public void run() throws Exception { writer.append(ServerWrapper.class.getName()); writer.append("\n"); } + if(JVMHelper.OS_TYPE != JVMHelper.OS.MUSTDIE) { + if(!startScript.toFile().setExecutable(true)) { + LogHelper.error("Failed to set executable %s", startScript); + } + } } }