This commit is contained in:
Valeria Fadeeva 2024-05-22 23:59:35 +05:00
parent a51a238df4
commit 1de48a6837
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!"
@ -79,7 +85,7 @@ do
/usr/bin/su "$user" -c "${cmd[*]}"
if [ "$user" != "liveuser" ]; then
if [ "$user" != "root" ]; then
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
rm /home/"$user"/.local/bin/key-sign.sh
fi