diff --git a/scripts/post/install-synergy.sh b/scripts/post/install-synergy.sh index 1b61bc2..b6405d5 100644 --- a/scripts/post/install-synergy.sh +++ b/scripts/post/install-synergy.sh @@ -15,9 +15,19 @@ 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 -O "$file" "$url" +wget -Oq "$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..."