Explorar el Código

[syncthing] Fix so it works with bsd sed

Colin Powell hace 3 años
padre
commit
db08168345
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ansible/roles/syncthing/tasks/main.yml

+ 1 - 1
ansible/roles/syncthing/tasks/main.yml

@@ -36,6 +36,6 @@
 
 - name: Syncthing disable fsWatcher
   shell:
-    cmd: 'sed -i -e ''/^    <folder/s/fsWatcherEnabled="true"/fsWatcherEnabled="false'' /usr/local/etc/syncthing/config.xml'
+    cmd: 'sed -i -e ''s/fsWatcherEnabled="true"/fsWatcherEnabled="false/'' /usr/local/etc/syncthing/config.xml'
     warn: false
   notify: Syncthing restarted