build: Don't upload data directory

This commit is contained in:
Starbeamrainbowlabs 2019-04-07 17:07:21 +01:00
parent 64316a2d2e
commit 48076d3c9b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

6
build
View file

@ -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 $?;