Browse Source

add create symlinks

Tomishinets Vladimir 4 years ago
parent
commit
fb9410309e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      entrypoint.sh

+ 4 - 1
entrypoint.sh

@@ -2,8 +2,11 @@
 
 if [ ! -z ${LOGPATH} ]
 then
-    ln -s ${LOGPATH} /opt/analis/log 
+    ln -s ${LOGPATH} /opt/analis/log
 fi
+echo "Create symlinks for configs"
+for i in $(ls -d /configs/*.{conf,ini}); do ln -sf ${i} /opt/analis/;done
+
 echo "Starting AnalisServer.exe $@"
 echo "This file used to shedule healthchecks" > /opt/analis/checkfile.status
 touch /opt/analis/log/fatal.log