pentoo-updater: set permissions

This commit is contained in:
Rick Farina (Zero_Chaos) 2021-08-23 12:10:18 -04:00
parent d6591ab0b2
commit 53996556c5
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -343,6 +343,8 @@ do_sync() {
return
fi
# People seem to break these permissions a lot, so just set them. it takes <3 seconds on my box
chown portage.portage -R /var/db/repos/{gentoo,pentoo}
if ! emerge --sync; then
if [ -e /etc/portage/repos.conf/pentoo.conf ] && grep -q pentoo.asc /etc/portage/repos.conf/pentoo.conf; then
printf "Pentoo repo key incorrectly defined, fixing..."