JBAS-1998 Sftp client looks for college files
authorBill Erickson <berickxx@gmail.com>
Mon, 23 Apr 2018 14:05:28 +0000 (10:05 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Teach the SFTP client script to add college districts to its list of
district codes to loop over when looking in batch for new files to
process.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/utility-scripts/import_students/sftp-client-agent.sh

index a135dfb..f5930d9 100755 (executable)
@@ -158,7 +158,7 @@ if [ -n "$PROCESS_FILES" ]; then
     announce "Processing files on DB $DB_HOST"
 fi
 
-for code in "${DISTRICT_CODES[@]}"; do
+for code in "${DISTRICT_CODES[@]}" "${COLLEGE_CODES[@]}"; do
     COMMAND="$SERVER_AGENT -d $code"; 
     COMPLETE_DIR="/home/sftp$code/complete"