1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Fix ynh_add_secure_repos_2

This commit is contained in:
yalh76 2019-04-02 04:14:24 +02:00
parent fbc7ebc188
commit d24dccd332

View file

@ -137,13 +137,7 @@ ynh_install_extra_repo () {
if [ -n "$key" ]
then
mkdir -p "/etc/apt/trusted.gpg.d"
if [[ "$(basename "$key")" =~ ".asc" ]]
then
local key_ext=asc
else
local key_ext=gpg
fi
wget -q "$key" -O - | gpg --dearmor | $wget_append /etc/apt/trusted.gpg.d/$name.$key_ext > /dev/null
wget -q "$key" -O - | gpg --dearmor | $wget_append /etc/apt/trusted.gpg.d/$name.gpg > /dev/null
fi
# Update the list of package with the new repo