add tee for create a logfile for post-install.txt

post-install.txt could be used for post installation, and so, it could be good to have a logfile which is a copy of stdout and stderr, for later debugging purpose.