forked from norman/fusionpbx-install.sh-github-mirror
Sngrep included recent Debian versions
This commit is contained in:
9
debian/resources/sngrep.sh
vendored
9
debian/resources/sngrep.sh
vendored
@@ -8,9 +8,6 @@ cd "$(dirname "$0")"
|
||||
. ./colors.sh
|
||||
. ./environment.sh
|
||||
|
||||
#make sure keyrings directory exits
|
||||
mkdir /etc/apt/keyrings
|
||||
|
||||
#add sngrep
|
||||
if [ ."$cpu_architecture" = ."arm" ]; then
|
||||
#source install
|
||||
@@ -21,8 +18,10 @@ if [ ."$cpu_architecture" = ."arm" ]; then
|
||||
cd /usr/src/sngrep && make install
|
||||
else
|
||||
#package install
|
||||
echo "deb [signed-by=/etc/apt/keyrings/irontec.gpg] http://packages.irontec.com/debian $(lsb_release -cs) main" > /etc/apt/sources.list.d/sngrep.list
|
||||
wget http://packages.irontec.com/public.key -q -O - | gpg --dearmor -o /etc/apt/keyrings/irontec.gpg
|
||||
if [ ."$os_codename" = ."jessie" ]; then
|
||||
echo "deb http://packages.irontec.com/debian $os_codename main" > /etc/apt/sources.list.d/sngrep.list
|
||||
wget http://packages.irontec.com/public.key -q -O - | apt-key add -
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y sngrep
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user