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
732 B
Bash
Executable File
26 lines
732 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#move to script directory so all relative paths work
|
|
cd "$(dirname "$0")"
|
|
|
|
#includes
|
|
. ./config.sh
|
|
. ./colors.sh
|
|
. ./environment.sh
|
|
|
|
#add sngrep
|
|
if [ ."$cpu_architecture" = ."arm" ]; then
|
|
#source install
|
|
apt-get install -y --force-yes git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev
|
|
cd /usr/src && git clone https://github.com/irontec/sngrep
|
|
cd /usr/src/sngrep && ./bootstrap.sh
|
|
cd /usr/src/sngrep && ./configure
|
|
cd /usr/src/sngrep && make install
|
|
else
|
|
#package install
|
|
echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list
|
|
wget http://packages.irontec.com/public.key -q -O - | apt-key add -
|
|
apt-get update
|
|
apt-get install sngrep
|
|
fi
|