Update
This commit is contained in:
parent
9334c1a04a
commit
23c17c8350
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Exec=/home/liveuser/.local/userbin/key-sign.sh
|
||||
Icon=
|
||||
Name=key-sign.sh
|
||||
Path=
|
||||
Terminal=False
|
||||
Type=Application
|
|
@ -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
|
Loading…
Reference in New Issue