#!/bin/bash

# Copyright 2014-2015 Boxkite Inc.

# This file is part of the DataCats package and is released under
# the terms of the GNU Affero General Public License version 3.0.
# See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html

set -e

if [ -e /etc/environment ]; then
    source /etc/environment
    export http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
fi
env

/usr/lib/ckan/bin/pip install -e "$1"

#!/bin/bash

# Copyright 2014-2015 Boxkite Inc.

# This file is part of the DataCats package and is released under
# the terms of the GNU Affero General Public License version 3.0.
# See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html

set -e

wget -q --spider https://pypi.python.org/simple || { echo "Error: Couldn't connect to PyPi. Is your DNS configured correctly?"; exit 1; }

if [ -e /etc/environment ]; then
    source /etc/environment
    export http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
fi
env

/usr/lib/ckan/bin/pip install -e "$1"

Add an error to install for not being able to reach PyPi due to lack of Internet connection
Add an error to install for not being able to reach PyPi due to lack of Internet connection
