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:
parent
fbc7ebc188
commit
d24dccd332
1 changed files with 1 additions and 7 deletions
|
@ -137,13 +137,7 @@ ynh_install_extra_repo () {
|
||||||
if [ -n "$key" ]
|
if [ -n "$key" ]
|
||||||
then
|
then
|
||||||
mkdir -p "/etc/apt/trusted.gpg.d"
|
mkdir -p "/etc/apt/trusted.gpg.d"
|
||||||
if [[ "$(basename "$key")" =~ ".asc" ]]
|
wget -q "$key" -O - | gpg --dearmor | $wget_append /etc/apt/trusted.gpg.d/$name.gpg > /dev/null
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update the list of package with the new repo
|
# Update the list of package with the new repo
|
||||||
|
|
Loading…
Reference in a new issue