Ver Fonte

add create symlinks

Tomishinets Vladimir há 4 anos atrás
pai
commit
fb9410309e
1 ficheiros alterados com 4 adições e 1 exclusões
  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