1 2 3 4 5 6 7 8
post_install() { source /etc/profile.d/petsc.sh export PETSC_DIR=${PETSC_DIR} } post_upgrade() { post_install }