mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-11-05 00:52:34 +00:00
First version
This commit is contained in:
15
start.sh
Executable file
15
start.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user