Created
August 4, 2010 23:32
-
-
Save dtjm/508978 to your computer and use it in GitHub Desktop.
A script that will download, compile, and install daemonize. Works on Centos 5.4
This file contains hidden or 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 | |
DIR=daemonize-src | |
[ -d $DIR ] || mkdir $DIR | |
cd $DIR | |
curl -L http://github.com/bmc/daemonize/tarball/release-1.6 | tar zxv | |
cd bmc-daemonize-* | |
./configure | |
make | |
sudo make install | |
RETURN=$? | |
cd ../.. | |
echo -n "Install was successful! Deleting all temp files..." | |
[ $RETURN -eq 0 ] && rm -rf $DIR | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment