Commit a1e48c8d authored by Daniel Tschan's avatar Daniel Tschan

Install optional dependencies on OpenShift.

parent 8b90ea1b
#! /bin/sh
#! /bin/bash
#
# Copyright © 2014 Daniel Tschan <tschan@puzzle.ch>
#
......@@ -37,6 +37,8 @@ find_script_dir() {
}
set -e
set -o errtrace
set -o pipefail
trap "rm $OPENSHIFT_DATA_DIR/.install" EXIT
trap 'echo -e "\nInstallation failed!"' ERR
......@@ -56,6 +58,13 @@ sed -e 's/Django[<>=]\+.*/Django>1.7,<1.8/' $OPENSHIFT_REPO_DIR/requirements-man
sh "pip install -r /tmp/requirements.txt"
# Install optional dependencies without failing if some can't be installed.
while read line; do
if [[ $line != -r* ]]; then
sh "pip install $line" || true
fi
done < $OPENSHIFT_REPO_DIR/requirements-optional.txt
if [ ! -s $OPENSHIFT_DATA_DIR/weblate.db ]; then
rm -f ${OPENSHIFT_DATA_DIR}/.credentials
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment