Places key in correct location

This commit is contained in:
Tobias Herre 2023-10-29 02:10:51 +02:00
parent 2af67ae49c
commit 058a5a9ebb
1 changed files with 7 additions and 5 deletions

View File

@ -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