Compiler always ensures symlinks exist before compiling (#61)

This commit is contained in:
Jordan Brown
2017-06-19 20:42:45 +02:00
committed by AnturK
parent 09309cc674
commit 8b79e9b8d6
+7
View File
@@ -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;