mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
build: Don't upload data directory
This commit is contained in:
parent
64316a2d2e
commit
48076d3c9b
1 changed files with 3 additions and 3 deletions
6
build
6
build
|
@ -294,15 +294,15 @@ task_deploy() {
|
||||||
task_begin "Preparing upload";
|
task_begin "Preparing upload";
|
||||||
|
|
||||||
subtask_begin "Creating temporary directory";
|
subtask_begin "Creating temporary directory";
|
||||||
temp_dir="$(mktemp -d --suffix "-rhinoreminds-upload")";
|
temp_dir="$(mktemp -d --suffix "-air-quality-upload")";
|
||||||
subtask_end $? "Error: Failed to create temporary directory";
|
subtask_end $? "Error: Failed to create temporary directory";
|
||||||
|
|
||||||
subtask_begin "Unpacking release files";
|
subtask_begin "Unpacking release files";
|
||||||
execute tar -xf "${ARCHIVE}/Air-Quality-Web.tar.gz" -C "${temp_dir}";
|
execute tar -xf "${ARCHIVE}/Air-Quality-Web.tar.gz" -C "${temp_dir}";
|
||||||
subtask_end $? "Failed to unpack release files";
|
subtask_end $? "Failed to unpack release files";
|
||||||
|
rm -r "${temp_dir}/data"; # Delete the default data directory - there's one on the server already
|
||||||
# Define the directory whose contents we want to upload
|
# Define the directory whose contents we want to upload
|
||||||
source_upload_dir="${temp_dir}/RhinoReminds-Release";
|
source_upload_dir="${temp_dir}/";
|
||||||
|
|
||||||
task_end $?;
|
task_end $?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue