Move creation of postinst script to build.sh