Skip to content

Commit

Permalink
Merge pull request #66 from HizkiFW/fix-spatialite-bug
Browse files Browse the repository at this point in the history
Fix spatialite bug
  • Loading branch information
nemesifier authored Dec 29, 2017
2 parents 485607b + 2277660 commit 4cf5834
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ Below are listed all the variables you can customize (you may also want to take
host: ""
port: ""
options: {}
# SPATIALITE_LIBRARY_PATH django setting
openwisp2_spatialite_path: "mod_spatialite"
# customize other django settings:
openwisp2_language_code: en-gb
openwisp2_time_zone: UTC
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ openwisp2_database:
host: ""
port: ""
options: {}
openwisp2_spatialite_path: "mod_spatialite"
openwisp2_language_code: "en-gb"
openwisp2_time_zone: "UTC"
openwisp2_context: {}
Expand Down
1 change: 1 addition & 0 deletions tasks/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- libproj-dev
- libgeos-dev
- libspatialite-dev
- libsqlite3-mod-spatialite

# fixes issue described in https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
- name: Install acl if acting as non-root user
Expand Down
2 changes: 2 additions & 0 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases

SPATIALITE_LIBRARY_PATH = '{{ openwisp2_spatialite_path }}'

DATABASES = {
'default': {
'ENGINE': '{{ openwisp2_database.engine }}',
Expand Down

0 comments on commit 4cf5834

Please sign in to comment.