Last active
October 21, 2015 14:36
-
-
Save 8ig8/2e7c1c9ce43448d8ced5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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