Update
This commit is contained in:
parent
19fba99aa0
commit
44d3a4865f
|
@ -15,6 +15,9 @@ have_internet="$?"
|
||||||
|
|
||||||
cd "/root"
|
cd "/root"
|
||||||
|
|
||||||
|
rm /var/lib/pacman/sync/*
|
||||||
|
rm -rf /etc/pacman.d/gnupg/*
|
||||||
|
|
||||||
mkdir -p /root/.gnupg 2>/dev/null
|
mkdir -p /root/.gnupg 2>/dev/null
|
||||||
chmod 700 /root/.gnupg
|
chmod 700 /root/.gnupg
|
||||||
|
|
||||||
|
@ -51,10 +54,13 @@ pacman-key --lsign-key endeavouros
|
||||||
|
|
||||||
pacman-key --populate
|
pacman-key --populate
|
||||||
|
|
||||||
|
echo "
|
||||||
|
keyserver hkp://keyserver.ubuntu.com:80" | sudo tee --append /etc/pacman.d/gnupg/gpg.conf
|
||||||
|
|
||||||
pacman-key --updatedb
|
pacman-key --updatedb
|
||||||
|
|
||||||
if [ "$have_internet" -eq 0 ]; then
|
if [ "$have_internet" -eq 0 ]; then
|
||||||
pacman -Syy
|
pacman -Sy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
title="Successed!"
|
title="Successed!"
|
||||||
|
@ -79,8 +85,8 @@ do
|
||||||
|
|
||||||
/usr/bin/su "$user" -c "${cmd[*]}"
|
/usr/bin/su "$user" -c "${cmd[*]}"
|
||||||
|
|
||||||
if [ "$user" != "liveuser" ]; then
|
if [ "$user" != "liveuser" ]; then
|
||||||
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
|
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
|
||||||
rm /home/"$user"/.local/bin/key-sign.sh
|
rm /home/"$user"/.local/bin/key-sign.sh
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue