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:
demonspork
2024-01-03 10:53:16 -06:00
committed by GitHub
parent d1b75cc405
commit 9601ff7db8
8 changed files with 35 additions and 37 deletions

View File

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