Fixed more of syncthing install script

This commit is contained in:
Phil 2022-04-19 16:08:02 +01:00
parent 9fcc0d2e10
commit 15e98dc461

View File

@ -34,7 +34,7 @@ mkdir /opt/syncthing/bin/current
# Get Syncthing and setup
cd /opt/syncthing/bin
wget https://github.com/syncthing/syncthing/releases/download/$(echo $syncthingversion)/syncthing-linux-amd64-$(echo $syncthingversion).tar.gz
untar syncthing-linux-amd64-$syncthingversion.tar.gz
tar -xvf syncthing-linux-amd64-$syncthingversion.tar.gz
cp -r syncthing-linux-amd64-$syncthingversion/* /opt/syncthing/bin/current
cat <<EOF > /opt/syncthing/bin/version.txt
$syncthingversion