Your choice of hook for this problem makes more sense, I will fix my post above to recommend --post-hook