syncthing-app/start.sh

16 lines
358 B
Bash
Raw Normal View History

2017-05-05 11:19:38 +00:00
#!/bin/bash
set -eu
mkdir -p /app/data/data /app/data/config
if ! [ -f /app/data/config/config.xml ]; then
cp /app/code/config.xml.default /app/data/config/config.xml
fi
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
exec busybox init