melawy-skel-root/root/.local/userbin/key-sign.sh

42 lines
870 B
Bash
Raw Normal View History

2023-11-22 11:29:04 +05:00
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
cd "/root"
2023-11-22 22:01:29 +05:00
chmod 700 /root/.gnupg
2023-11-22 11:29:04 +05:00
haveged -w 1024
pacman-key --init
pkill haveged
pacman-key --populate archlinux melawy-linux endeavouros arcolinux chaotic cachyos
pacman-key --lsign-key melawy-linux
pacman-key --lsign-key endeavouros
pacman-key --lsign-key arcolinux
pacman-key --lsign-key chaotic
pacman-key --lsign-key cachyos
pacman-key --recv-keys valeria@fadeeva.me --keyserver hkps://keys.openpgp.org
pacman-key --lsign-key valeria@fadeeva.me
pacman-key --recv-keys key@fadeeva.me --keyserver hkps://keys.openpgp.org
pacman-key --lsign-key key@fadeeva.me
pacman-key --updatedb
pacman -Syy
if [ "$(whoami)" != "liveuser" ]; then
sleep 5
2023-11-22 22:01:29 +05:00
rm $HOME/.config/autostart/key-sign.sh.desktop
rm $HOME/.local/userbin/key-sign.sh
2023-11-22 11:29:04 +05:00
fi