Skip to content

Commit

Permalink
Compiler always ensures symlinks exist before compiling (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss authored and AnturK committed Jun 19, 2017
1 parent 09309cc commit 8b79e9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TGServerService/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ void CompileImpl()

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;
Expand Down

0 comments on commit 8b79e9b

Please sign in to comment.