From 8b79e9b8d6a887db378b4a4cc2d6e7b187f760e6 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 19 Jun 2017 14:42:45 -0400 Subject: [PATCH] Compiler always ensures symlinks exist before compiling (#61) --- TGServerService/Compiler.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TGServerService/Compiler.cs b/TGServerService/Compiler.cs index 01a6e2eca4..ba8e0b5c0a 100644 --- a/TGServerService/Compiler.cs +++ b/TGServerService/Compiler.cs @@ -293,6 +293,13 @@ namespace TGServerService Directory.CreateDirectory(resurrectee + "/.git/logs"); + if (!Directory.Exists(resurrectee + "/config")) + CreateSymlink(resurrectee + "/config", StaticConfigDir); + if (!Directory.Exists(resurrectee + "/data")) + CreateSymlink(resurrectee + "/data", StaticDataDir); + if (!File.Exists(resurrectee + LibMySQLFile)) + CreateSymlink(resurrectee + LibMySQLFile, StaticDirs + LibMySQLFile); + bool repobusy_check = false; if (!Monitor.TryEnter(RepoLock)) repobusy_check = true;