start.sh 358 B

123456789101112131415
  1. #!/bin/bash
  2. set -eu
  3. mkdir -p /app/data/data /app/data/config
  4. if ! [ -f /app/data/config/config.xml ]; then
  5. cp /app/code/config.xml.default /app/data/config/config.xml
  6. fi
  7. sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
  8. export STNODEFAULTFOLDER=1 STNOUPGRADE=1
  9. exec busybox init