mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1777 from YunoHost/Tagadda-patch-1
Update sury apt key
This commit is contained in:
commit
ac02ca812d
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ Pin-Priority: -1
|
||||||
do_post_regen() {
|
do_post_regen() {
|
||||||
regen_conf_files=$1
|
regen_conf_files=$1
|
||||||
|
|
||||||
|
# Purge expired keys (such as sury 95BD4743)
|
||||||
|
EXPIRED_KEYS="$(LC_ALL='en_US.UTF-8' apt-key list 2>/dev/null | grep -A1 'expired:' | grep -v 'expired\|^-' | sed 's/\s//g')"
|
||||||
|
for KEY in $EXPIRED_KEYS; do apt-key del $KEY 2>/dev/null; done
|
||||||
|
|
||||||
# Add sury key
|
# Add sury key
|
||||||
# We do this only at the post regen and if the key doesn't already exists, because we don't want the regenconf to fuck everything up if the regenconf runs while the network is down
|
# We do this only at the post regen and if the key doesn't already exists, because we don't want the regenconf to fuck everything up if the regenconf runs while the network is down
|
||||||
if [[ ! -s /etc/apt/trusted.gpg.d/extra_php_version.gpg ]]
|
if [[ ! -s /etc/apt/trusted.gpg.d/extra_php_version.gpg ]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue