This commit is contained in:
Valeria Fadeeva 2023-11-23 01:54:17 +05:00
parent 481c7dc635
commit e41ac2333e
2 changed files with 0 additions and 50 deletions

View File

@ -1,7 +0,0 @@
[Desktop Entry]
Exec=$HOME/.local/userbin/key-sign.sh
Icon=
Name=key-sign.sh
Path=
Terminal=False
Type=Application

View File

@ -1,43 +0,0 @@
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
sleep 20
cd "/root"
chmod 700 /root/.gnupg
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
rm $HOME/.config/autostart/key-sign.sh.desktop
rm $HOME/.local/userbin/key-sign.sh
fi