-
Notifications
You must be signed in to change notification settings - Fork 0
/
installation.config
44 lines (39 loc) · 1.11 KB
/
installation.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
##############################
##### Laravel Installer #####
##############################
#--------------------------------------------------------------------
#
# Install Laravel and dependencies
#
# @Author Alton Bell Smythe < abellsmythe@gmail.com >
# @Version 0.0.1
#
#---------------------------------------------------------------------
# SYSTEM VARIABLES
OWNER=$(who am i | awk '{print $1}')
APACHE_USER=$(ps -ef | egrep '(httpd|apache2|apache)' | grep -v root | head -n1 | awk '{print $1}')
APACHE_SITES_ENABLED="/etc/apache2/sites-enabled/"
APACHE_SITES_AVAILABLE="/etc/apache2/sites-available/"
# GLOBAL VARIABLES
PHP_REQUIRED_VERSION="7.1.0"
LARAVEL_VERSION="5.6"
INSTALL_DIRECTORY="/var/www/html/"
VIRTUAL_HOST="laravel.local"
PROJECT_NAME="laravel"
EMAIL="webmaster@localhost"
APACHE_DOMAIN=$APACHE_SITES_AVAILABLE$VIRTUAL_HOST.conf
# COLORS
GREEN="\033[0;32m"
CYAN="\033[0;36m"
RED="\033[0;31m"
YELLOW="\033[0;33m"
LIGHT_GREEN="\033[1;32m"
LIGHT_CYAN="\033[1;36m"
LIGHT_RED="\033[1;31m"
LIGHT_YELLOW="\033[1;33m"
WHITE="\033[1;37m"
NO_COLOR="\033[0m"
# STYLES
BLINK="\033[5m"
BOLD="\033[1m"
NORMAL="\033[25m"