Created
September 26, 2016 10:54
-
-
Save jpartain89/4881f7d1e0514cbf731cb69213d091d9 to your computer and use it in GitHub Desktop.
Builds Monit from their BitBucket repo
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 | |
# 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