mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: oopsies in apt helper
This commit is contained in:
parent
2895d4d99b
commit
0aad13cd2f
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ EOF
|
||||||
|
|
||||||
mkdir --parents "/etc/apt/trusted.gpg.d"
|
mkdir --parents "/etc/apt/trusted.gpg.d"
|
||||||
# Timeout option is here to enforce the timeout on dns query and tcp connect (c.f. man wget)
|
# Timeout option is here to enforce the timeout on dns query and tcp connect (c.f. man wget)
|
||||||
wget --timeout 900 --quiet "$key" --output-document=- | gpg --dearmor | tee /etc/apt/trusted.gpg.d/$name.gpg >/dev/null
|
wget --timeout 900 --quiet "$key" --output-document=- | gpg --dearmor > /etc/apt/trusted.gpg.d/$app.gpg
|
||||||
|
|
||||||
# Update the list of package with the new repo NB: we use -o
|
# Update the list of package with the new repo NB: we use -o
|
||||||
# Dir::Etc::sourcelist to only refresh this repo, because
|
# Dir::Etc::sourcelist to only refresh this repo, because
|
||||||
|
@ -247,7 +247,7 @@ EOF
|
||||||
ynh_safe_rm "/etc/apt/sources.list.d/$app.list"
|
ynh_safe_rm "/etc/apt/sources.list.d/$app.list"
|
||||||
ynh_safe_rm "/etc/apt/preferences.d/$app"
|
ynh_safe_rm "/etc/apt/preferences.d/$app"
|
||||||
ynh_safe_rm "/etc/apt/trusted.gpg.d/$app.gpg"
|
ynh_safe_rm "/etc/apt/trusted.gpg.d/$app.gpg"
|
||||||
ynh_apt_update
|
_ynh_apt update
|
||||||
}
|
}
|
||||||
|
|
||||||
# #####################
|
# #####################
|
||||||
|
|
Loading…
Add table
Reference in a new issue