This commit is contained in:
Valeria Fadeeva 2024-05-22 23:58:28 +05:00
parent 19fba99aa0
commit 44d3a4865f
1 changed files with 11 additions and 5 deletions

View File

@ -15,6 +15,9 @@ have_internet="$?"
cd "/root"
rm /var/lib/pacman/sync/*
rm -rf /etc/pacman.d/gnupg/*
mkdir -p /root/.gnupg 2>/dev/null
chmod 700 /root/.gnupg
@ -51,10 +54,13 @@ pacman-key --lsign-key endeavouros
pacman-key --populate
echo "
keyserver hkp://keyserver.ubuntu.com:80" | sudo tee --append /etc/pacman.d/gnupg/gpg.conf
pacman-key --updatedb
if [ "$have_internet" -eq 0 ]; then
pacman -Syy
pacman -Sy
fi
title="Successed!"