Better handling of the staging directory

This commit is contained in:
Cyberboss
2018-06-14 16:00:50 -04:00
parent 478980ed65
commit 7d54a1b75e
+6 -7
View File
@@ -261,14 +261,13 @@ namespace TGS.Server
//STAGING
ZipFile.ExtractToDirectory(rrdp, RelativePath(StagingDirectory));
lock (ByondLock)
{
File.WriteAllText(RelativePath(StagingDirectoryInner + VersionFile), String.Format("{0}.{1}", major, minor));
//IMPORTANT: SET THE BYOND CONFIG TO NOT PROMPT FOR TRUSTED MODE REEE
Directory.CreateDirectory(RelativePath(ByondConfigDir));
File.WriteAllText(RelativePath(ByondDDConfig), ByondNoPromptTrustedMode);
}
File.Delete(rrdp);
//IMPORTANT: SET THE BYOND CONFIG TO NOT PROMPT FOR TRUSTED MODE REEE
Directory.CreateDirectory(RelativePath(ByondConfigDir));
File.WriteAllText(RelativePath(ByondDDConfig), ByondNoPromptTrustedMode);
lock (ByondLock)
File.WriteAllText(RelativePath(StagingDirectoryInner + VersionFile), String.Format("{0}.{1}", major, minor));
lock (ByondLock)
{