Try using predeploy instead of postdeploy script.