fix post-up script