From 34d722c9818807e65b6e8c8ccafaf216e5f64a73 Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Tue, 24 Oct 2023 16:28:15 +0200 Subject: [PATCH] Inital commit --- scripts/install-php-repo.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/install-php-repo.sh diff --git a/scripts/install-php-repo.sh b/scripts/install-php-repo.sh new file mode 100644 index 0000000..6e22f1e --- /dev/null +++ b/scripts/install-php-repo.sh @@ -0,0 +1,23 @@ +!/bin/sh +# To add this repository please do: + + + +echo $1 $2 $3 + +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 + +else + echo "its not $3" + + echo "deb $2 $(lsb_release -sc) main" > /etc/apt/sources.list.d/$1.list + +fi + +apt-get update +