Skip to content

Commit

Permalink
profile: fix keyring gpg issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Oct 5, 2022
1 parent 30cc0e8 commit 7059ae1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bash_profile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# First run script for ArchWSL
echo Initialize keyring
rm -rf /etc/pacman.d/gnupg/
rm -rf /root/.gnupg/
clear
pacman-key --init
pacman-key --populate

Expand All @@ -16,13 +19,13 @@ if [[ $FSTYPE_LIST == *lxfs* || $FSTYPE_LIST == *wslfs* ]] ; then
read -p "Would you like to install the glibc-linux4 package? (y/n):" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
yes | pacman -U ~/glibc-linux4.pkg.tar.zst
yes | pacman -U /root/glibc-linux4.pkg.tar.zst
echo
echo glibc-linux4 is a 3rd party package and will not be updated automatically.
echo You need to manage this package with AUR helpers or 3rd party repositories.
echo
fi
fi

rm ~/glibc-linux4.pkg.tar.zst
rm ~/.bash_profile
rm /root/glibc-linux4.pkg.tar.zst
rm /root/.bash_profile

0 comments on commit 7059ae1

Please sign in to comment.