#!/bin/bash set -eu mkdir -p /app/data/config export STNODEFAULTFOLDER=1 STNOUPGRADE=1 # if this if the first run, generate a useful config if [ ! -f /app/data/config/config.xml ]; then echo "=> Generating config" /app/code/syncthing --generate="/app/data/config" fi cat >/run/ldap.conf <.*,tcp://:22000,' -i /app/data/config/config.xml sed -e 's,,,' -i /app/data/config/config.xml chown -R cloudron:cloudron /app/data/config /app/data exec busybox init