Skip to content

Commit

Permalink
v7.8
Browse files Browse the repository at this point in the history
+ DietPi-Pre-patches | If an APT key expired already, it shows "expired: <date>" instead of "expires: <date>". To be failsafe, accept both: It is definitely the expired key when expiration date is in 2021.
MichaIng authored Nov 6, 2021
1 parent 3f6f8e0 commit eda313f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .update/pre-patches
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ then
fi

# v7.1: Update Ondrej's PHP APT repo key: https://github.com/MichaIng/DietPi/issues/4219
if apt-key list '95BD4743' 2> /dev/null | grep -q 'expires: 2021-'
if apt-key list '95BD4743' 2> /dev/null | grep -q 'expire[sd]: 2021-'
then
G_DIETPI-NOTIFY 2 'Updating PHP APT repo key: https://github.com/MichaIng/DietPi/issues/4219'
G_EXEC apt-key del '95BD4743'

0 comments on commit eda313f

Please sign in to comment.