diff options
-rwxr-xr-x | install.sh | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -5,7 +5,7 @@ # for Python 3. # -PYTHON_VERSION="3.4" +PYTHON_VERSION="3.5" sudo apt-get install -y python$PYTHON_VERSION libpq-dev python$PYTHON_VERSION-dev build-essential git sudo apt-get install -y libxml2-dev libxslt1-dev # for lxml @@ -14,11 +14,11 @@ sed -i '/psycopg2/d' requirements.txt sudo pip$PYTHON_VERSION install --upgrade -r requirements.txt # Initializes the configuration file -cp conf/conf.cfg-sample conf/conf.cfg +cp src/conf/conf.cfg-sample src/conf/conf.cfg # Delete default database configuration -sed -i '/database/d' conf/conf.cfg -sed -i '/database_url/d' conf/conf.cfg +sed -i '/database/d' src/conf/conf.cfg +sed -i '/database_url/d' src/conf/conf.cfg if [ "$1" == postgres ]; then sudo apt-get install -y postgresql postgresql-server-dev-9.4 postgresql-client @@ -31,13 +31,13 @@ if [ "$1" == postgres ]; then echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO pgsqluser;" | sudo -u postgres psql # Add configuration lines for PostgreSQL - echo '[database]' >> conf/conf.cfg - echo 'database_url = postgres://pgsqluser:pgsqlpwd@127.0.0.1:5433/aggregator' >> conf/conf.cfg + echo '[database]' >> src/conf/conf.cfg + echo 'database_url = postgres://pgsqluser:pgsqlpwd@127.0.0.1:5433/aggregator' >> src/conf/conf.cfg elif [ "$1" == sqlite ]; then sudo pip$PYTHON_VERSION install pysqlite # not working with Python 3! # Add configuration lines for SQLite - echo '[database]' >> conf/conf.cfg - echo 'database_url = sqlite+pysqlite:///jarr.db' >> conf/conf.cfg + echo '[database]' >> src/conf/conf.cfg + echo 'database_url = sqlite+pysqlite:///jarr.db' >> src/conf/conf.cfg fi python$PYTHON_VERSION manager.py db_empty |