From 7eed69f4edd6a4c2bae020b227a018ea16611d54 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 May 2017 13:56:10 +0200 Subject: Install script: fix post install script python path --- install/ishtar-install | 2 ++ install/post_install_script.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/install/ishtar-install b/install/ishtar-install index 1d26e1a7b..dc4087f6a 100755 --- a/install/ishtar-install +++ b/install/ishtar-install @@ -323,6 +323,7 @@ EOF if [ "$default_db" == '127.0.0.1' ]; then echo "-------------------------------------------------------------------------------"; cecho y "Installing postgresql" + echo "" POSTGIS=postgresql-9.1-postgis ( set -x; $sh_c 'sleep 3; apt-get install -y -q postgresql '$POSTGIS ) fi @@ -363,6 +364,7 @@ EOF if [ "$default_db" == '127.0.0.1' ]; then echo "-------------------------------------------------------------------------------"; cecho y "Installing postgresql" + echo "" POSTGIS=postgresql-9.4-postgis-2.3 ( set -x; $sh_c 'sleep 3; apt-get install -y -q postgresql '$POSTGIS ) fi diff --git a/install/post_install_script.py b/install/post_install_script.py index a4a5aaf0c..141b738d0 100644 --- a/install/post_install_script.py +++ b/install/post_install_script.py @@ -2,6 +2,8 @@ import sys import os import django +sys.path.append(os.path.abspath('.')) + app_name, url = sys.argv[1], sys.argv[2] os.environ.setdefault("DJANGO_SETTINGS_MODULE", app_name + ".settings") django.setup() -- cgit v1.2.3