2024-08-27 20:40:57 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
2024-08-11 00:19:55 +02:00
|
|
|
|
|
|
|
# Add the release PGP keys:
|
|
|
|
sudo mkdir -p /etc/apt/keyrings
|
|
|
|
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
|
|
|
|
|
|
|
# Add the "stable" channel to your APT sources:
|
|
|
|
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
|
|
|
|
|
|
|
|
# Update and install syncthing:
|
|
|
|
sudo apt-get update
|
2024-08-27 20:40:57 +02:00
|
|
|
sudo apt-get install syncthing
|