Blame tests/p_ipa-server/99-postclean.sh
|
James Hogarth |
62aaba |
#!/bin/bash
|
|
James Hogarth |
62aaba |
# Author: James Hogarth <james.hogarth@gmail.com>
|
|
James Hogarth |
62aaba |
#
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
62aaba |
if (t_GetPkgRel basesystem | grep -q el6)
|
|
James Hogarth |
62aaba |
then
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
62aaba |
t_Log "Running $0 - Restoring up resolv.conf"
|
|
James Hogarth |
62aaba |
cp /tmp/resolv.conf.ipa-tests /etc/resolv.conf
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
62aaba |
t_Log "Running $0 - Restoring nsswitch.conf"
|
|
James Hogarth |
62aaba |
cp /tmp/nsswitch.conf.ipa-tests /etc/nsswitch.conf
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
db0e0b |
t_Log "Running $0 - Restoring hosts file"
|
|
James Hogarth |
62aaba |
cp /tmp/hosts.ipa-tests /etc/hosts
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
db0e0b |
t_Log "Running $0 - Rolling back to yum history id"
|
|
James Hogarth |
62aaba |
/usr/bin/yum -y history rollback $(cat /tmp/yum-rollback-id.ipa-tests) &> /dev/null
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
8c426b |
rm -f /tmp/*.ipa-test /etc/httpd/conf.d/*
|
|
James Hogarth |
62aaba |
|
|
James Hogarth |
62aaba |
else
|
|
James Hogarth |
62aaba |
echo "Skipped on CentOS 5"
|
|
James Hogarth |
62aaba |
fi
|
|
James Hogarth |
62aaba |
|