Fix post_start_hooks entry point, add purge to setup hook

post_start_hooks was calling post_setup_hooks,
which is a misnomer. post_setup_hooks should also
call purge because it is necessary during upgrades.

Change-Id: Ic8731f185338b6febd9c543f837ffed2abec80a5
Partial-Bug: #1349287
This commit is contained in:
Matthew Mosesohn 2014-08-26 13:48:28 +04:00
parent c8550b1b51
commit d9070e21b2
2 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,7 @@ elif [ "$1" == "logs" ]; then
logs $container
elif [ "$1" == "post_start_hooks" ]; then
shift 2
post_setup_hooks "$container" "$@"
post_start_hooks "$container" "$@"
else
echo "Invalid selection."
show_usage

View File

@ -393,6 +393,7 @@ function pre_start_hooks {
}
function post_setup_hooks {
purge_stale_iptables_rules $1
case $1 in
cobbler) setup_dhcrelay_for_cobbler
;;