This commit is contained in:
USER
2024-07-26 22:54:27 +01:00
parent 6c494354cc
commit f5512f19f6
5 changed files with 57 additions and 0 deletions

3
fixes/1-defaults Executable file
View File

@ -0,0 +1,3 @@
syncthing cli config defaults folder fswatcher-enabled set false
syncthing cli config defaults folder rescan-intervals set 19997
syncthing cli config options min-home-disk-free unit set GB

15
fixes/1-machines Executable file
View File

@ -0,0 +1,15 @@
BINARY=~/Downloads/.syncthing/syncthing
myID=`${BINARY} --device-id`
MASTER_LIST=/zz/zPrivate/secrets/master.list
SHARE_LIST=/zz/zPrivate/secrets/share.list
grep -v ${myID} ${MASTER_LIST} ${SHARE_LIST} > /tmp/final.1
for i in `cat /tmp/final.1`
do
echo $i
syncthing cli config devices add --device-id $i
done

20
fixes/1-pushfolders Executable file
View File

@ -0,0 +1,20 @@
BINARY=~/Downloads/.syncthing/syncthing
myID=`${BINARY} --device-id`
MASTER_LIST=/zz/zPrivate/secrets/master.list
SHARE_LIST=/zz/zPrivate/secrets/share.list
grep -v ${myID} ${MASTER_LIST} ${SHARE_LIST} > /tmp/final.1
syncthing cli config folders list > /tmp/final.2
for i in `cat /tmp/final.1`
do
echo $i
for j in `cat /tmp/final.2`
do
echo $j
syncthing cli config folders $j devices add --device-id=$i
done
done

11
fixes/3-fixlocalfolders Executable file
View File

@ -0,0 +1,11 @@
syncthing cli config folders list > /tmp/final.2
for i in `cat /tmp/final.2`
do
echo $i
syncthing cli config folders $i rescan-intervals set 19997
syncthing cli config folders $i fswatcher-enabled set false
syncthing cli config folders $i min-disk-free unit set GB
done

8
fixes/fix Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
. /static/fixes/0-env
sh -x /static/fixes/1-defaults
sh -x /static/fixes/1-machines2
sh -x /static/fixes/1-pushfolders
sh -x /static/fixes/3-fixlocalfolders