mirror of
https://github.com/YunoHost-Apps/turtl_ynh.git
synced 2024-09-03 20:26:35 +02:00
Change the way to add GPG keys
This commit is contained in:
parent
0ff2ad7c7b
commit
815abd8720
1 changed files with 18 additions and 2 deletions
|
@ -59,8 +59,24 @@ cp -a "../conf/turtl.list" "/etc/apt/sources.list.d/$app.list"
|
|||
cp -a "../conf/turtl-preferences" "/etc/apt/preferences.d/00TurtlPinning"
|
||||
if [ $archi == "armv7l" ]
|
||||
then
|
||||
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
|
||||
gpg -a --export 7638D0442B90D010 | apt-key add -
|
||||
gpg --list-keys 7638D0442B90D010 > /dev/null 2>&1
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
|
||||
fi
|
||||
gpg --list-keys 8B48AD6246925553 > /dev/null 2>&1
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
|
||||
fi
|
||||
if [ $(apt-key finger | grep "7638 D044 2B90 D010" -c) == 0 ]
|
||||
then
|
||||
gpg -a --export 7638D0442B90D010 | apt-key add -
|
||||
fi
|
||||
if [ $(apt-key finger | grep "8B48 AD62 4692 5553" -c) == 0 ]
|
||||
then
|
||||
gpg -a --export 8B48AD6246925553 | apt-key add -
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $archi == "armv7l" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue