diff --git a/setup/install-mysql.sh b/setup/install-mysql.sh new file mode 100755 index 00000000..04cdbd9e --- /dev/null +++ b/setup/install-mysql.sh @@ -0,0 +1,20 @@ +#!/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 +} + + +# Update The APT Cache +sudo apt-get update || OwnError "Unable To Update APT Cache :(" + +# Install MySQL +sudo apt-get -y install mysql-server mysqltuner || OwnError "Unable To Install MySQL :(" +