Skip to content

Instantly share code, notes, and snippets.

@jpartain89
Created September 26, 2016 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpartain89/4881f7d1e0514cbf731cb69213d091d9 to your computer and use it in GitHub Desktop.
Save jpartain89/4881f7d1e0514cbf731cb69213d091d9 to your computer and use it in GitHub Desktop.
Builds Monit from their BitBucket repo
#!/bin/bash
# This builds monit with the --enable-optimized flag set.
monit_dir=/home/$USER/git/monit
if [[ ! -e "$monit_dir" ]]; then
echo ""
echo "Monit's git directory missing."
echo "Cloning"
echo ""
git clone https://tildeslash@bitbucket.org/tildeslash/monit.git "$monit_dir"
fi
cd "$monit_dir" &&
./bootstrap &&
./configure --enable-optimized &&
make &&
sudo make install &&
unset monit_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment