Skip to content

Instantly share code, notes, and snippets.

@8ig8
Last active October 21, 2015 14:36
Show Gist options
  • Save 8ig8/2e7c1c9ce43448d8ced5 to your computer and use it in GitHub Desktop.
Save 8ig8/2e7c1c9ce43448d8ced5 to your computer and use it in GitHub Desktop.
#!/bin/bash
##
# Install rsync on WH
# http://forums.westhost.com/showthread.php?13812-Easily-Install-rsync-On-WestHost-Accounts&highlight=rsync
#
# Requires gcc
#
# https://gist.github.com/8ig8/2e7c1c9ce43448d8ced5
# curl https://gist.githubusercontent.com/8ig8/2e7c1c9ce43448d8ced5/raw/install-rsync-wh.sh | bash
# curl -k https://gist.githubusercontent.com/8ig8/2e7c1c9ce43448d8ced5/raw/install-rsync-wh.sh | bash
# Update to latest version if needed. See https://rsync.samba.org/download.html
RSYNC="https://download.samba.org/pub/rsync/rsync-3.1.1.tar.gz"
gcc -v
echo -e '\n\nYou are about to install on your account.\nThe installation will complete in approximately 1 minute.\n'
date +'=== Installation Started at %r ==='
echo ' [1/4] Downloading...'
# -k makes curl insecure - ignores cert warnings
# -s makes curl silent
curl -s -k $RSYNC | tar -xz
cd rsync-*
echo ' [2/4] Configuring...'
./configure >/dev/null
echo ' [3/4] Building...'
make >/dev/null
echo ' [4/4] Installing...'
make install >/dev/null
cd ..
rm -rf rsync-*
date +'=== Installation Completed at %r ==='
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment