diff --git a/preset/syncthing-config.xml b/preset/syncthing-config.xml index d8a9290..5563cbd 100644 --- a/preset/syncthing-config.xml +++ b/preset/syncthing-config.xml @@ -3,6 +3,7 @@ basic oldestFirst + 1
tcp://builds.garudalinux.org
diff --git a/run b/run index c5f848c..fde60e2 100755 --- a/run +++ b/run @@ -53,6 +53,22 @@ if [ ! -e ./data/syncthing/config.xml ]; then chown -R 1000:1000 ./data/syncthing fi +gawk -i inplace '/0<\/minDiskFree>/ { + if (begin) { + print " 1" + next + } else { + print + } +} +/<\/folder>/ { + begin = 0 +} +1' ./data/syncthing/config.xml + if [ "$USE_TUNNELS" != "true" ]; then docker-compose -f docker-compose.yml up ${COMPOSEFLAGS-"-d"} else diff --git a/update b/update index 8ba3b64..d756140 100755 --- a/update +++ b/update @@ -10,7 +10,7 @@ fi ./stop if [ ! -d "./.git" ]; then - if [ "$(git rev-parse --is-inside-work-tree)" == "true" ]; then + if [ "$(git rev-parse --is-inside-work-tree || true)" == "true" ]; then echo "Please run this script in the main directory" exit 1 fi