adapted post-install script