Install docker; remove synergy

This commit is contained in:
gmpinder
2023-06-04 23:24:32 -04:00
parent 81be18ace5
commit 3af012954a
3 changed files with 3 additions and 42 deletions

View File

@@ -1,40 +0,0 @@
#!/usr/bin/env bash
# Fail on any error
set -eou pipefail
# Define version
version="v3.0.72.1-rc1"
# Define base name for the file
base_name="synergy-linux_x64-libssl3"
# Define file URL
url="https://rc.symless.com/synergy3/${version}/${base_name}-${version}.rpm"
# Define file name
file="/tmp/${base_name}-${version}.rpm"
# Directory that we need to remove before installation
dir="/opt/Synergy"
# Download file
echo "Downloading file..."
wget -qO "$file" "$url"
# Check if directory exists
if [ -d "$dir" ]
then
echo "Removing existing directory..."
rm -rf "$dir"
fi
# Install the package using rpm
echo "Installing package..."
rpm -i "$file"
# Remove the downloaded file
echo "Removing the downloaded file..."
rm "$file"
echo "Done."

View File

@@ -7,10 +7,10 @@ FILENAME="syncthing-linux-amd64-${VERSION}.tar.gz"
EXTRACTED_DIR="syncthing-linux-amd64-${VERSION}"
# Download the file
wget "${BASE_URL}/${VERSION}/${FILENAME}"
wget --quiet "${BASE_URL}/${VERSION}/${FILENAME}"
# Extract the file
tar xvf "${FILENAME}"
tar xf "${FILENAME}"
# Move the binary to /usr/local/bin
mv "${EXTRACTED_DIR}/syncthing" /usr/bin