diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 13:56:10 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 13:56:10 +0200 |
commit | 7eed69f4edd6a4c2bae020b227a018ea16611d54 (patch) | |
tree | fb3047803781b6202d596a6980408c360c26ddb5 /install | |
parent | 4029f0a292d4fbd96036d3223b5b78db2233df98 (diff) | |
download | Ishtar-7eed69f4edd6a4c2bae020b227a018ea16611d54.tar.bz2 Ishtar-7eed69f4edd6a4c2bae020b227a018ea16611d54.zip |
Install script: fix post install script python path
Diffstat (limited to 'install')
-rwxr-xr-x | install/ishtar-install | 2 | ||||
-rw-r--r-- | install/post_install_script.py | 2 |
2 files changed, 4 insertions, 0 deletions
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() |