You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
705 B
29 lines
705 B
12 years ago
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
|
||
|
# Capture Errors
|
||
|
OwnError()
|
||
|
{
|
||
|
#echo $@ >&2
|
||
|
clear
|
||
|
echo -e "[ $0 ][ `date` ] \033[31m $@ \e[0m" | tee -ai /var/log/easyengine/error.log
|
||
|
exit 100
|
||
|
}
|
||
|
|
||
|
|
||
|
# Install Python Software Properties
|
||
|
sudo apt-get -y install python-software-properties || OwnError "Unable To Install Python Software Properties :("
|
||
|
|
||
|
# Add Nginx Launchpad Repository
|
||
|
sudo add-apt-repository ppa:nginx/stable || OwnError "Unable To Add Nginx Launchpad Repository :("
|
||
|
|
||
|
# Update The APT Cache
|
||
|
sudo apt-get update || OwnError "Unable To Update APT Cache :("
|
||
|
|
||
|
# Install Nginx
|
||
|
sudo apt-get -y install nginx || OwnError "Unable To Install Nginx :("
|
||
|
|
||
|
# Check Nginx Version
|
||
|
nginx -v || OwnError "Unable To Detect Nginx Version :("
|