switch to HTTP and put script in before_install group