35 lines
917 B
Bash
35 lines
917 B
Bash
#!/bin/bash
|
|
|
|
# Install - Syncthing.
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Download & Syncthing"
|
|
echo " "
|
|
echo " Enter your user password, to continue if necessary"
|
|
echo " "
|
|
echo " continues the installation in 2 seconds"
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
sleep 1
|
|
|
|
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
|
|
|
sleep 1
|
|
|
|
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
|
|
|
|
sleep 1
|
|
|
|
sudo apt update && sudo apt install -y syncthing
|
|
|
|
sudo systemctl enable syncthing@$(whoami).service
|
|
|
|
sleep 1
|
|
|
|
sudo systemctl start syncthing@$(whoami).service
|
|
|
|
clear
|
|
|
|
sudo systemctl status syncthing@$(whoami).service
|
|
|
|
echo "WEB GUI AT https://localhost:8384" |