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 | |
# Add the EPEL repo if not added already | |
yum repolist | grep -i epel | |
if [ $? -ne 0 ]; then | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
fi | |
# Install the preqs | |
yum install gcc-c++ httpd python-devel python-pip python-sqlite2 \ |
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 | |
# The current process has unrestricted/unlimited (root) access when the Effective User ID (EUID) is 0: | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2 | |
exit 1 | |
fi | |
# Make sure we are on CentOS | |
OS=`cat /etc/redhat-release | awk {'print $1}'` |
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 | |
OS=`cat /etc/redhat-release | awk {'print $1}'` | |
if [ "$OS" != "CentOS" ]; then | |
echo -e "\e[1;31mThis script is intended for CentOS only\e[0m" 1>&2 | |
#exit 1 | |
fi |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2 | |
exit 1 | |
fi |
NewerOlder