mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
build: Unwind symlinks before upload
This commit is contained in:
parent
356410620a
commit
b9a70a278a
1 changed files with 8 additions and 0 deletions
8
build
8
build
|
@ -314,7 +314,15 @@ task_deploy() {
|
|||
subtask_begin "Unpacking release files";
|
||||
execute tar -hxf "${ARCHIVE}/Air-Quality-Web.tar.gz" -C "${temp_dir}";
|
||||
subtask_end $? "Failed to unpack release files";
|
||||
|
||||
subtask_begin "Removing data directory";
|
||||
rm -r "${temp_dir}/data"; # Delete the default data directory - there's one on the server already
|
||||
subtask_end $?;
|
||||
|
||||
subtask_begin "Unwinding symlinks";
|
||||
find -type l -exec bash -c 'ln -f "$(readlink -m "$0")" "$0"' {} \;
|
||||
subtask_end $?;
|
||||
|
||||
# Define the directory whose contents we want to upload
|
||||
source_upload_dir="${temp_dir}/";
|
||||
|
||||
|
|
Loading…
Reference in a new issue