Prevent Syncthing auto-upgrade and restart.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 23 Jun 2017 16:19:49 +0000 (18:19 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 23 Jun 2017 16:19:49 +0000 (18:19 +0200)
lib/syncthing/st.go

index 75bdf80..e4506a5 100644 (file)
@@ -210,6 +210,8 @@ func (s *SyncThing) Start() (*exec.Cmd, error) {
 
        env := []string{
                "STNODEFAULTFOLDER=1",
+               "STNOUPGRADE=1",
+               "STNORESTART=1",
        }
 
        s.STCmd, err = s.startProc("syncthing", args, env, &s.exitSTChan)