From 7e8817d2c52772d9ba8861c81692085efc13d55c Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 11 Mar 2022 13:28:23 +0000 Subject: [PATCH] make scripts executable --- etl/README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/etl/README.md b/etl/README.md index cb9ba144..6337586f 100644 --- a/etl/README.md +++ b/etl/README.md @@ -53,16 +53,17 @@ If you didn't download the OS files to the Ubuntu machine where you are setting ## Process and load Ordnance Survey data -The scripts should be run in the following order: +Move into the `etl` directory and set execute permission on all scripts. ```bash cd ~/colouring-london/etl +chmod +x *.sh ``` @@ -70,7 +71,7 @@ sudo ./extract_addressbase.sh ./addressbase_dir Extract the MasterMap data (this step could take a while). ```bash -sudo ./extract_mastermap.sh ./mastermap_dir +./extract_mastermap.sh ./mastermap_dir ``` @@ -84,7 +85,7 @@ source colouringlondon/bin/activate Filter MasterMap 'building' polygons and any others referenced by addressbase. ```bash -sudo ./filter_transform_mastermap_for_loading.sh ./mastermap_dir +./filter_transform_mastermap_for_loading.sh ./mastermap_dir ``` Load all building outlines. @@ -92,7 +93,7 @@ Load all building outlines. ```bash -sudo ./load_geometries.sh ./mastermap_dir +./load_geometries.sh ./mastermap_dir ``` Index geometries. @@ -106,7 +107,7 @@ Create a building record per outline. ```bash -sudo ./create_building_records.sh +./create_building_records.sh ``` @@ -116,7 +117,7 @@ Add UPRNs where they match. ```bash -sudo ./load_uprns.sh ./addressbase_dir +./load_uprns.sh ./addressbase_dir ```` Run the remaining migrations in `../migrations` to create the rest of the database structure.