diff --git a/transfer.sh b/transfer.sh index be68bc6..0e03b93 100755 --- a/transfer.sh +++ b/transfer.sh @@ -17,6 +17,8 @@ function main() { local LIN_DIR="/mnt/linux" local WIN_DIR="/mnt/windows" + [[ -d "/opt/os-transfer" ]] && cd "/opt/os-transfer" + local SPACE_PROJECT_MAP="./space-project-map" [[ -f "$SPACE_PROJECT_MAP" ]] || \ { @@ -45,7 +47,7 @@ function main() { local TODAY_FAILURES="$LOG_DIR/failure.log" local TODAY_INGRESS="$LOG_DIR/ingress.log" local TODAY_EGRESS="$LOG_DIR/egress.log" - + while [[ $# -gt 0 ]]; do case "$1" in -m|--email) @@ -331,8 +333,8 @@ function purge_files() { function email() { local SUBJECT="Space Openstack File Transfer" - local MAIL_FROM="os-transfer@adbraun.lol" - local RCPT_TO="adam@adbraun.lol" + local MAIL_FROM="hpcsys-bayes@epcc.ed.ac.uk" + local RCPT_TO="hpcsys-bayes@epcc.ed.ac.uk r.davies@epcc.ed.ac.uk analytical.workbench@gov.scot a.brown@epcc.ed.ac.uk" : > "$SPACE_EMAIL_FILE" @@ -379,4 +381,5 @@ function email() { mv "$SPACE_EMAIL_FILE" "$EMAIL_ARCHIVE/$(date +%Y-%m-%d)-space-email" } -main "$@" \ No newline at end of file +main "$@" +