Sngrep included recent Debian versions

This commit is contained in:
FusionPBX 2024-02-05 12:49:29 -07:00 committed by GitHub
parent 7e0d874857
commit a0ee735bdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 5 deletions

View File

@ -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