浏览代码

Restart after removing a syncthing user

Bob Mottram 8 年前
父节点
当前提交
584018797a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/freedombone-syncthing

+ 1
- 0
src/freedombone-syncthing 查看文件

61
     remove_username="$1"
61
     remove_username="$1"
62
 
62
 
63
     sed -i "/<folder id=\"${remove_username}\" /,/</folder>/d" $SYNCTHING_CONFIG_FILE
63
     sed -i "/<folder id=\"${remove_username}\" /,/</folder>/d" $SYNCTHING_CONFIG_FILE
64
+    systemctl restart syncthing
64
 }
65
 }
65
 
66
 
66
 function new_syncthing_id {
67
 function new_syncthing_id {