summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit712e73a57c0606eeea39ffae490075356313fff3 (patch)
treefb3047803781b6202d596a6980408c360c26ddb5
parent4bed1cae41c8640d847a7aebfe51202fc3755ed9 (diff)
downloadIshtar-712e73a57c0606eeea39ffae490075356313fff3.tar.bz2
Ishtar-712e73a57c0606eeea39ffae490075356313fff3.zip
Install script: fix post install script python path
-rwxr-xr-xinstall/ishtar-install2
-rw-r--r--install/post_install_script.py2
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()