Browse Source

add LOGPATH env to link logs path , #114027

Vadim Surkov 5 years ago
parent
commit
8f2d8e5d41
1 changed files with 4 additions and 0 deletions
  1. 4 0
      entrypoint.sh

+ 4 - 0
entrypoint.sh

@@ -1,5 +1,9 @@
 #!/bin/bash
 
+if [ ! -z ${LOGPATH} ]
+then
+    ln -s /root/.wine/drive_c/services/analis/log ${LOGPATH}
+fi
 echo "Starting AnalisServer.exe $@"
 touch /root/.wine/drive_c/services/analis/log/fatal.log
 ln -s /root/.wine/drive_c/services/analis/log/fatal.log /root/.wine/drive_c/services/analis/fatal.log