From 058a5a9ebb8d08f5f244bce56bffbd602915fb7f Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Sun, 29 Oct 2023 02:10:51 +0200 Subject: [PATCH] Places key in correct location --- scripts/install-php-repo.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/install-php-repo.sh b/scripts/install-php-repo.sh index 6e22f1e..72adea4 100644 --- a/scripts/install-php-repo.sh +++ b/scripts/install-php-repo.sh @@ -1,7 +1,7 @@ -!/bin/sh +#!/bin/sh # To add this repository please do: - +set -x echo $1 $2 $3 @@ -9,8 +9,10 @@ echo "PARAMS $1 $2 $3" if [ -n "$3" ]; then echo "it dollaar 3" - curl -sSLo /usr/share/keyrings/$4 $3 - echo "deb [signed-by=/usr/share/keyrings/$4] $2 $(lsb_release -sc) main" > /etc/apt/sources.list.d/$1.list + wget -O /etc/apt/trusted.gpg.d/$1.gpg $3 + echo "deb $2 $(lsb_release -sc) main" > /etc/apt/sources.list.d/$1.list + chmod 644 /etc/apt/sources.list.d/$1.list + chmod 644 /etc/apt/trusted.gpg.d/$1.gpg else echo "its not $3" @@ -19,5 +21,5 @@ else fi -apt-get update +apt-get update -y