Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from misli/product-id-certs
Browse files Browse the repository at this point in the history
Install new product id certificates during upgrade
  • Loading branch information
dashea committed Oct 6, 2014
2 parents 78b28d8 + cc51573 commit 7b9ec3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 85system-upgrade-redhat/do-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ do_upgrade() {
$UPGRADEBIN --root=/sysroot $args
rv=$?

# backup old product id certificates
chroot $NEWROOT /bin/sh -c 'mkdir /etc/pki/product_old; mv -f /etc/pki/product/*.pem /etc/pki/product_old/'

# install new product id certificates
chroot $NEWROOT /bin/sh -c 'mv -f /system-upgrade/*.pem /etc/pki/product/'

# restore things twiddled by workarounds above. TODO: remove!
if [ -f /sys/fs/selinux/enforce ]; then
echo $enforce > /sys/fs/selinux/enforce
Expand Down

0 comments on commit 7b9ec3b

Please sign in to comment.