diff --git a/scripts/install-gis-tools.sh b/scripts/install-gis-tools.sh new file mode 100755 index 0000000..4ecd9f5 --- /dev/null +++ b/scripts/install-gis-tools.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 26 April 2025 +# Purpose : Installs misc GIS tools from apt +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +et-log "Installing GIS tools..." + +apt install \ + sqlite3 \ + qgis \ + -y diff --git a/scripts/install-python.sh b/scripts/install-python.sh index 16f12b5..75e9603 100755 --- a/scripts/install-python.sh +++ b/scripts/install-python.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 25 April 2025 -# Purpose : Installs Python 3 +# Purpose : Installs Python 2 set -e trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR diff --git a/scripts/install.sh b/scripts/install.sh index 3cb23c6..8d8a6e3 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 25 April 2025 +# Updated : 26 April 2025 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -65,3 +65,4 @@ exitIfNotRoot ./install-mbtileserver.sh ./install-python.sh ./install-mbutil.sh +./install-gis-tools.sh diff --git a/tests/test-qgis.sh b/tests/test-qgis.sh new file mode 100755 index 0000000..4cecf9a --- /dev/null +++ b/tests/test-qgis.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 25 April 2025 +# Purpose : Test QGIS installation + +OUT=$(which qgis) +exit $? diff --git a/tests/test-sqlite.sh b/tests/test-sqlite.sh new file mode 100755 index 0000000..629f861 --- /dev/null +++ b/tests/test-sqlite.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 25 April 2025 +# Purpose : Test SQLite installation + +OUT=$(sqlite3 -version | grep "^3[.]") +exit $?