14 lines
622 B
Bash
14 lines
622 B
Bash
|
# On ajoute le dépôt officiel de Syncthing
|
||
|
sudo apt update
|
||
|
sudo apt install curl -y
|
||
|
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
||
|
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
|
||
|
# On installe Syncthing
|
||
|
sudo apt update
|
||
|
sudo apt install syncthing -y
|
||
|
# On le lance au démarrage
|
||
|
systemctl enable syncthing@$USER.service
|
||
|
systemctl start syncthing@$USER.service
|
||
|
# On check si le service est bien démarré
|
||
|
systemctl status syncthing@myuser.service
|