Adding script for syncthing

This commit is contained in:
Mylloon 2021-11-08 20:11:56 +01:00
parent 7f22b19164
commit 5cbb023331
2 changed files with 17 additions and 1 deletions

View file

@ -57,4 +57,7 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
```bash ```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
``` ```
- Installe Syncthing et le lance au démarrage - Installe [Syncthing](https://apt.syncthing.net/) et le lance au démarrage
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSyncthing.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```

13
installSyncthing.sh Normal file
View file

@ -0,0 +1,13 @@
# 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