diff --git a/src/Tgstation.Server.Host/Components/Byond/PosixByondInstaller.cs b/src/Tgstation.Server.Host/Components/Byond/PosixByondInstaller.cs index c467d4c08b..5bf642cdcb 100644 --- a/src/Tgstation.Server.Host/Components/Byond/PosixByondInstaller.cs +++ b/src/Tgstation.Server.Host/Components/Byond/PosixByondInstaller.cs @@ -24,11 +24,15 @@ namespace Tgstation.Server.Host.Components.Byond /// const string ByondCachePath = "~/.byond/cache"; - /// - public string DreamDaemonName => "DreamDaemon.sh"; + const string DreamDaemonExecutableName = "DreamDaemon"; + const string DreamMakerExecutableName = "DreamMaker"; + const string ShellScriptExtension = ".sh"; /// - public string DreamMakerName => "DreamMaker.sh"; + public string DreamDaemonName => DreamDaemonExecutableName + ShellScriptExtension; + + /// + public string DreamMakerName => DreamMakerExecutableName + ShellScriptExtension; /// /// The for the @@ -107,9 +111,6 @@ namespace Tgstation.Server.Host.Components.Byond //need to add $ORIGIN to LD_LIBRARY_PATH const string StandardScript = "#!/bin/sh\nexport LD_LIBRARY_PATH=\"\\$ORIGIN:$LD_LIBRARY_PATH\"\nBASEDIR=$(dirname \"$0\")\nexec \"$BASEDIR/{0}\" \"$@\"\n"; - const string DreamDaemonExecutableName = "DreamDaemon"; - const string DreamMakerExecutableName = "DreamMaker"; - var dreamDaemonScript = String.Format(CultureInfo.InvariantCulture, StandardScript, DreamDaemonExecutableName); var dreamMakerScript = String.Format(CultureInfo.InvariantCulture, StandardScript, DreamMakerExecutableName);