mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] bullseye migration: a few annoying issues related to Sury
This commit is contained in:
parent
b9bb2e4de5
commit
b5fabc871b
1 changed files with 11 additions and 3 deletions
|
@ -104,10 +104,18 @@ class MyMigration(Migration):
|
||||||
open("/etc/apt/sources.list.d/extra_php_version.list", "w").write(
|
open("/etc/apt/sources.list.d/extra_php_version.list", "w").write(
|
||||||
"deb https://packages.sury.org/php/ bullseye main"
|
"deb https://packages.sury.org/php/ bullseye main"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add Sury key even if extra_php_version.list was already there,
|
||||||
|
# because some old system may be using an outdated key not valid for Bullseye
|
||||||
|
# and that'll block the migration
|
||||||
os.system(
|
os.system(
|
||||||
'wget --timeout 900 --quiet "https://packages.sury.org/php/apt.gpg" --output-document=- | gpg --dearmor >"/etc/apt/trusted.gpg.d/extra_php_version.gpg"'
|
'wget --timeout 900 --quiet "https://packages.sury.org/php/apt.gpg" --output-document=- | gpg --dearmor >"/etc/apt/trusted.gpg.d/extra_php_version.gpg"'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Remove legacy, duplicated sury entry if it exists
|
||||||
|
if os.path.exists("/etc/apt/sources.list.d/sury.list"):
|
||||||
|
os.system("rm -rf /etc/apt/sources.list.d/sury.list")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Get requirements of the different venvs from python apps
|
# Get requirements of the different venvs from python apps
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue