standardize apt-get

This commit is contained in:
aptalca
2021-09-21 13:14:52 -04:00
parent 1d072a2f3f
commit 67cd15b932
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
if [ ! -f "/etc/apt/sources.list.d/kisak-mesa-focal.list" ]; then
echo "**** Adding kisak-mesa repo ****"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439
echo "deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main" > /etc/apt/sources.list.d/kisak-mesa-focal.list
fi
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update
-3
View File
@@ -19,8 +19,5 @@ done
if "$install"; then
echo "**** Installing mesa ****"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439
echo "deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main" > /etc/apt/sources.list.d/kisak-mesa-focal.list
apt-get update
apt-get install -y $pkgs
fi