This commit is contained in:
Valeria Fadeeva 2023-05-16 04:20:05 +05:00
parent 9334c1a04a
commit 23c17c8350
3 changed files with 34 additions and 25 deletions

View File

@ -5,31 +5,6 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if [[ "$(whoami)" == "liveuser" ]]; then
sddm_service_status=$(ls /var/run/sddm)
if [[ -z "$sddm_service_status" ]]; then
# setfacl -m u:sddm:x ~/
# setfacl -m u:sddm:r ~/.face
# setfacl -m u:sddm:r ~/.face.icon
#
# # Init & Populate keys
# sudo haveged -w 1024
# sudo pacman-key --init
# sudo pkill haveged
#
# sudo pacman-key --recv-keys 95F48000540A4DB146583A47C49B5E77FD80302D --keyserver hkps://keys.openpgp.org
# sudo pacman-key --lsign-key 95F48000540A4DB146583A47C49B5E77FD80302D
#
# sudo pacman-key --populate archlinux melawy-linux arcolinux
#
# sudo pacman-key --updatedb
#
sudo pacman -Syy
sudo systemctl start sddm
fi
fi
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion

View File

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

View File

@ -0,0 +1,27 @@
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
pacman-key -l key@fadeeva.me > key-sign.txt
cd "/root"
haveged -w 1024
pacman-key --init
pkill haveged
pacman-key --populate archlinux melawy-linux arcolinux
pacman-key --recv-keys 95F48000540A4DB146583A47C49B5E77FD80302D --keyserver hkps://keys.openpgp.org
pacman-key --lsign-key 95F48000540A4DB146583A47C49B5E77FD80302D
pacman-key --lsign-key key@fadeeva.me
pacman-key --updatedb
pacman -Syy