Skip to content

Commit

Permalink
Merge pull request #7 from RMI-PACTA/feature/done-files-paths
Browse files Browse the repository at this point in the history
correct path to write donefiles
  • Loading branch information
AlexAxthelm authored Dec 21, 2023
2 parents 761e909 + 366cbcd commit 1ec3f59
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions system/bin/run_data_loader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ if [ -z "$FDS_LOADER_SOURCE_PATH" ]; then
envvar_fail=1
fi

if [ -z "$WORKINGSPACEPATH" ]; then
echo "ERROR: WORKINGSPACEPATH is not set."
envvar_fail=1
fi

if [ -n "$envvar_fail" ]; then
echo "One or more required envvars are not set."
echo "Please set these envvars and try again."
Expand Down Expand Up @@ -71,7 +76,7 @@ if [ -n "$RESTORE_DB" ]; then
echo "Exiting. (exit code $exit_code)"
exit "$exit_code"
fi
touch "$WORKING_DIR/done_restore"
touch "$WORKINGSPACEPATH/done_restore"
fi

test_results="$FDS_LOADER_PATH/test_results.txt"
Expand Down Expand Up @@ -125,7 +130,7 @@ else
echo "INFO: FDSLoader run completed successfully"
fi

touch "$WORKING_DIR/done_loader"
touch "$WORKINGSPACEPATH/done_loader"

if [ -n "$BACKUP_DB" ]; then
# Backup Database
Expand All @@ -136,7 +141,7 @@ if [ -n "$BACKUP_DB" ]; then
echo "Exiting. (exit code $exit_code)"
exit "$exit_code"
fi
touch "$WORKING_DIR/done_backup"
touch "$WORKINGSPACEPATH/done_backup"
fi

echo "INFO: Done!"
Expand Down

0 comments on commit 1ec3f59

Please sign in to comment.