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:
parent
c8550b1b51
commit
d9070e21b2
@ -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
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user