Skip to content
Snippets Groups Projects
Commit 8ea00a27 authored by Bob Mottram's avatar Bob Mottram
Browse files

Removing syncthing users from the config

parent 4c66ac64
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,12 @@ SYNCTHING_UPDATE_FILE='.syncthing-update'
CHANGED=
TEMP_IDS_FILE=/root/.synthingids
function remove_user_syncthing {
remove_username="$1"
sed -i "/<folder id=\"${remove_username}\" /,/</folder>/d" $SYNCTHING_CONFIG_FILE
}
function new_syncthing_id {
for i in {1..8}
do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment