.
This commit is contained in:
15
fixes/1-machines
Executable file
15
fixes/1-machines
Executable 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
|
||||
Reference in New Issue
Block a user