This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Based on https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d | |
| set -eo pipefail | |
| # This script installs PhantomJS and Wraith along with its dependencies. | |
| npm install -g casperjs | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "### PROVISIONIN PHP 5.2.17..." | |
| if [ "$(whoami)" != "root" ] | |
| then | |
| sudo su -s "$0" | |
| exit | |
| fi | |
| # Add PostgreSQL Apt Repository (provides postgresql-server-dev-9.4) | |
| echo "### Installing wget and other dependencies" | |
| apt-get install -y wget | |
| echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list |
NewerOlder