From 9926a5655e8c8a07395abbe6816c8777dae97da2 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Fri, 19 Apr 2024 02:38:21 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/get-the-keys-and-repos.sh | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 usr/share/blackbox/scripts/get-the-keys-and-repos.sh diff --git a/usr/share/blackbox/scripts/get-the-keys-and-repos.sh b/usr/share/blackbox/scripts/get-the-keys-and-repos.sh new file mode 100644 index 0000000..a342882 --- /dev/null +++ b/usr/share/blackbox/scripts/get-the-keys-and-repos.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +###################################################################################################################### + +sudo pacman -S wget --noconfirm --needed + +echo "Getting the ArcoLinux keys from the ArcoLinux repo - report if link is broken" +sudo wget https://github.com/arcolinux/arcolinux_repo/raw/main/x86_64/arcolinux-keyring-20251209-3-any.pkg.tar.zst -O /tmp/arcolinux-keyring-20251209-3-any.pkg.tar.zst +sudo pacman -U --noconfirm --needed /tmp/arcolinux-keyring-20251209-3-any.pkg.tar.zst + +echo "Getting the latest arcolinux mirrors file - report if link is broken" +sudo wget https://github.com/arcolinux/arcolinux_repo/raw/main/x86_64/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst -O /tmp/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst +sudo pacman -U --noconfirm --needed /tmp/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst + +###################################################################################################################### + +if grep -q arcolinux_repo /etc/pacman.conf; then + + echo "ArcoLinux repos are already in /etc/pacman.conf" + +else + +echo ' +#[arcolinux_repo_testing] +#SigLevel = PackageRequired DatabaseNever +#Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo] +SigLevel = PackageRequired DatabaseNever +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_3party] +SigLevel = PackageRequired DatabaseNever +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_xlarge] +SigLevel = PackageRequired DatabaseNever +Include = /etc/pacman.d/arcolinux-mirrorlist' | sudo tee --append /etc/pacman.conf + +fi + +echo "DONE - UPDATE NOW" \ No newline at end of file