mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
Fix deprecated apt-key so we can use sury repo to install php 8.*
This commit is contained in:
parent
c20218a76e
commit
ee8c31e568
1 changed files with 3 additions and 2 deletions
|
@ -292,8 +292,9 @@ function install_sury_repo {
|
||||||
if [ ! -f /etc/apt/sources.list.d/sury-php.list ]
|
if [ ! -f /etc/apt/sources.list.d/sury-php.list ]
|
||||||
then
|
then
|
||||||
print_info "installing installing sury-php repository..."
|
print_info "installing installing sury-php repository..."
|
||||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list
|
apt-get -y install apt-transport-https
|
||||||
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -
|
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||||
|
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-php.list'
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
else
|
else
|
||||||
print_info "sury-php repository is already installed."
|
print_info "sury-php repository is already installed."
|
||||||
|
|
Loading…
Reference in a new issue