CKAN is saved in the Cache directory now
This commit is contained in:
parent
0f8a2c0ec4
commit
5802861b9c
|
@ -7,10 +7,18 @@ export PIP_DOWNLOAD_CACHE=~/.pip_cache
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
POSTGRES_PORT=${POSTGRES_PORT:=5432}
|
POSTGRES_PORT=${POSTGRES_PORT:=5432}
|
||||||
|
CACHE_DIR=~/.cache
|
||||||
|
|
||||||
|
|
||||||
echo "Downloading CKAN..."
|
echo "Downloading CKAN..."
|
||||||
git clone https://github.com/ckan/ckan
|
if [ ! -d "$CACHE_DIR/ckan" ]
|
||||||
|
then
|
||||||
|
git clone https://github.com/ckan/ckan "$CACHE_DIR/ckan"
|
||||||
|
fi
|
||||||
|
ln -s "$CACHE_DIR/ckan" .
|
||||||
|
cd ckan
|
||||||
|
git checkout release-v2.2
|
||||||
|
cd $WD
|
||||||
|
|
||||||
|
|
||||||
echo "Checking Solr..."
|
echo "Checking Solr..."
|
||||||
|
@ -20,12 +28,11 @@ if [ $SOLR_ACTIVE -ne 0 ]
|
||||||
then
|
then
|
||||||
|
|
||||||
echo "Downloading Solr..."
|
echo "Downloading Solr..."
|
||||||
CACHE_DIR=~/.cache
|
|
||||||
FILE=solr-4.8.1.zip
|
FILE=solr-4.8.1.zip
|
||||||
SOLAR_UNZIP_FOLDER=solr-4.8.1
|
SOLAR_UNZIP_FOLDER=solr-4.8.1
|
||||||
|
|
||||||
# If the solar folder does not exist, we have to build it
|
# If the solar folder does not exist, we have to build it
|
||||||
if [ ! -f "$CACHE_DIR/$SOLAR_UNZIP_FOLDER" ]
|
if [ ! -d "$CACHE_DIR/$SOLAR_UNZIP_FOLDER" ]
|
||||||
then
|
then
|
||||||
# Download the solar installation file if it does not exist
|
# Download the solar installation file if it does not exist
|
||||||
if [ ! -f "$CACHE_DIR/$FILE" ]
|
if [ ! -f "$CACHE_DIR/$FILE" ]
|
||||||
|
@ -49,7 +56,6 @@ else
|
||||||
echo "Solar is already installed..."
|
echo "Solar is already installed..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Setting up virtualenv..."
|
echo "Setting up virtualenv..."
|
||||||
virtualenv --no-site-packages virtualenv
|
virtualenv --no-site-packages virtualenv
|
||||||
source virtualenv/bin/activate
|
source virtualenv/bin/activate
|
||||||
|
|
Loading…
Reference in New Issue