Places key in correct location
This commit is contained in:
parent
2af67ae49c
commit
058a5a9ebb
|
@ -1,7 +1,7 @@
|
||||||
!/bin/sh
|
#!/bin/sh
|
||||||
# To add this repository please do:
|
# To add this repository please do:
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
echo $1 $2 $3
|
echo $1 $2 $3
|
||||||
|
|
||||||
|
@ -9,8 +9,10 @@ echo "PARAMS $1 $2 $3"
|
||||||
|
|
||||||
if [ -n "$3" ]; then
|
if [ -n "$3" ]; then
|
||||||
echo "it dollaar 3"
|
echo "it dollaar 3"
|
||||||
curl -sSLo /usr/share/keyrings/$4 $3
|
wget -O /etc/apt/trusted.gpg.d/$1.gpg $3
|
||||||
echo "deb [signed-by=/usr/share/keyrings/$4] $2 $(lsb_release -sc) main" > /etc/apt/sources.list.d/$1.list
|
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
|
else
|
||||||
echo "its not $3"
|
echo "its not $3"
|
||||||
|
@ -19,5 +21,5 @@ else
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get update
|
apt-get update -y
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue