forked from norman/fusionpbx-install.sh-github-mirror
* added CentOS, Fedora, RHEL choices with minimal version check (recommited) * fixed small typos * added special option --use-php5-package * parse options and export new environment variable USE_PHP5_PACKAGE * added choice between php5* or php7.0* packages (recommited) * fixed php*-fpm service name and php.ini file path (recommited) * prepare socket name for nginx to work with php5-fpm or php7.0-fpm (recommited) * added ppa:ondrej/php5-compat repo * added dependency ppa:ondrej/php repo and package software-properties-common * added execute permissions to ./centos/*.sh files
26 lines
438 B
Bash
Executable File
26 lines
438 B
Bash
Executable File
#!/bin/sh
|
|
|
|
verbose () {
|
|
echo "${green}$1${normal}"
|
|
}
|
|
error () {
|
|
echo "${red}$1${normal}"
|
|
}
|
|
warning () {
|
|
echo "${yellow}$1${normal}"
|
|
}
|
|
|
|
# check for color support
|
|
if test -t 1; then
|
|
|
|
# see if it supports colors...
|
|
ncolors=$(tput colors)
|
|
|
|
if test -n "$ncolors" && test $ncolors -ge 8; then
|
|
normal="$(tput sgr0)"
|
|
red="$(tput setaf 1)"
|
|
green="$(tput setaf 2)"
|
|
yellow="$(tput setaf 3)"
|
|
fi
|
|
fi
|