Bug fix empty value check CentOS (#85)

* 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

* POSIX sh empty value check compatibility
This commit is contained in:
erxspin
2017-03-11 05:07:16 +06:00
committed by FusionPBX
parent f2265865f9
commit 26d050685a
4 changed files with 14 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ if [ -z "$CPU_CHECK" ]; then
esac
done
if [ $HELP = true ]; then
if [ .$HELP = .true ]; then
warning "Debian installer script"
warning " --use-switch-source will use freeswitch from source rather than ${green}(default:packages)"
warning " --use-switch-package-all if using packages use the meta-all package"

View File

@@ -24,7 +24,7 @@ cp ./fail2ban/nginx-dos.conf /etc/fail2ban/filter.d/nginx-dos.conf
cp ./fail2ban/jail.local /etc/fail2ban/jail.local
#update config if source is being used
#if [ $USE_FREESWITCH_SOURCE = true ]; then
#if [ .$USE_FREESWITCH_SOURCE = .true ]; then
# sed 's#var/log/freeswitch#usr/local/freeswitch/log#g' -i /etc/fail2ban/jail.local
#fi

View File

@@ -22,7 +22,7 @@ wget https://forensics.cert.org/cert-forensics-tools-release-el7.rpm
rpm -Uvh cert-forensics-tools-release*rpm
yum -y --enablerepo=forensics install lame
if [ $USE_SYSTEM_MASTER = true ]; then
if [ .$USE_SYSTEM_MASTER = .true ]; then
verbose "Using master"
BRANCH=""
else