Browse Source

change entrypoint.sh

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

+ 9 - 0
entrypoint.sh

@@ -1,5 +1,11 @@
 #!/bin/bash
 
+createDir() {
+    SHARE_DIR='/root/.wine/dosdevices/unc/samba.infoclinica.lan/smartdelta01'
+    [ ! -d ${SHARE_DIR}/Files ] && mkdir ${SHARE_DIR}/Files
+    [ ! -d ${SHARE_DIR}/Files/$1 ] && mkdir ${SHARE_DIR}/Files/$1
+}
+
 if [ ! -z ${LOGPATH} ]
 then
     ln -s ${LOGPATH} /opt/analis/log
@@ -7,6 +13,9 @@ fi
 echo "Create symlinks for configs"
 for i in $(ls -d /configs/*.{conf,ini}); do ln -sf ${i} /opt/analis/;done
 
+echo "create ARCHIVE Dictionaries IN OUT ERR"
+for i in ARCHIVE Dictionaries IN OUT ERR; do createDir ${i}; done
+
 echo "Starting AnalisServer.exe $@"
 echo "This file used to shedule healthchecks" > /opt/analis/checkfile.status
 touch /opt/analis/log/fatal.log