.
This commit is contained in:
20
fixes/1-remove-machines
Executable file
20
fixes/1-remove-machines
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
BINARY=~/Downloads/.syncthing/syncthing
|
||||||
|
MYHOST=`uname -n`
|
||||||
|
myID=`${BINARY} --device-id`
|
||||||
|
|
||||||
|
MASTER_LIST=/zz/zPrivate/secrets/master.list
|
||||||
|
SHARE_LIST=/zz/zPrivate/secrets/share.list
|
||||||
|
|
||||||
|
${BINARY} cli config devices ${myID} name set ${MYHOST}.${USER}
|
||||||
|
|
||||||
|
#grep -v ${myID} ${MASTER_LIST} > /tmp/final.1
|
||||||
|
grep -v ${myID} ${SHARE_LIST} >> /tmp/final.1
|
||||||
|
|
||||||
|
for i in `cat /tmp/final.1`
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
${BINARY} cli config devices
|
||||||
|
|
||||||
|
|
||||||
|
add --device-id $i
|
||||||
|
done
|
||||||
@ -2,6 +2,7 @@
|
|||||||
. /zz/zShared/fixes/0-env
|
. /zz/zShared/fixes/0-env
|
||||||
sh -x /zz/zShared/fixes/1-defaults
|
sh -x /zz/zShared/fixes/1-defaults
|
||||||
sh -x /zz/zShared/fixes/1-machines
|
sh -x /zz/zShared/fixes/1-machines
|
||||||
|
#sh -x /zz/zShared/fixes/1-remove-machines
|
||||||
sh -x /zz/zShared/fixes/1-pushfolders
|
sh -x /zz/zShared/fixes/1-pushfolders
|
||||||
sh -x /zz/zShared/fixes/3-fixlocalfolders
|
sh -x /zz/zShared/fixes/3-fixlocalfolders
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user