Skip to content

Commit 7c52bca

Browse files
committed
update
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
1 parent b32600c commit 7c52bca

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/tools/syncthing.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@ This is preferred over Ansible so that I can more easily update them by updating
4848
)
4949
```
5050

51+
=== "sudo"
52+
53+
```shell
54+
(
55+
sudo wget -O /usr/lib/systemd/system/syncthing@.service https://github.com/syncthing/syncthing/raw/refs/heads/main/etc/linux-systemd/system/syncthing@.service
56+
sudo systemctl enable syncthing@${USER}.service
57+
sudo systemctl start syncthing@${USER}.service
58+
)
59+
```
60+
61+
=== "root"
62+
63+
```
64+
sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" "${HOME}/.local/state/syncthing/config.xml"
65+
systemctl restart syncthing@${USER}.service
66+
```
67+
68+
=== "sudo"
69+
70+
```
71+
sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" "${HOME}/.local/state/syncthing/config.xml"
72+
sudo systemctl restart syncthing@${USER}.service
73+
```
74+
5175
### :desktop_computer: Control Node
5276

5377
1. Add managed node.

0 commit comments

Comments
 (0)