forked from norman/fusionpbx-install.sh-github-mirror
Improve apt key security and always install sngrep from official (#416)
* Improve apt key security and always install sngrep from official * Correct PHP GPG key file path
This commit is contained in:
6
debian/resources/sngrep.sh
vendored
6
debian/resources/sngrep.sh
vendored
@@ -18,10 +18,8 @@ if [ ."$cpu_architecture" = ."arm" ]; then
|
||||
cd /usr/src/sngrep && make install
|
||||
else
|
||||
#package install
|
||||
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
|
||||
echo "deb [signed-by=/etc/apt/keyrings/irontec.gpg] http://packages.irontec.com/debian $os_codename 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
|
||||
apt-get update
|
||||
apt-get install -y sngrep
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user