From a55f8e2af074b71683b3519e0c97a627452b00ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3=20Prims?= <oriol.tinto@lmu.de> Date: Fri, 24 Mar 2023 16:08:53 +0100 Subject: [PATCH] Fix command in prepare_date_remote.sh --- templates/real-from-dwd-ana/prepare_date_local.sh | 5 ++++- templates/real-from-dwd-ana/prepare_date_remote.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/real-from-dwd-ana/prepare_date_local.sh b/templates/real-from-dwd-ana/prepare_date_local.sh index 86f5380..ecbaa23 100644 --- a/templates/real-from-dwd-ana/prepare_date_local.sh +++ b/templates/real-from-dwd-ana/prepare_date_local.sh @@ -45,13 +45,16 @@ if [ "${IS_LOCAL}" == "True" ]; then rsync -v an_file.txt "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/an_file.txt" rsync -v fg_file.txt "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/fg_file.txt" + # Remove temporary files. + rm an_file.txt + rm fg_file.txt # Copy the first-guess and analysis files. rsync -v "${FG_SOURCE}" "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/${FG_FILE}" rsync -v "${AN_SOURCE}" "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/${AN_FILE}" # Change permissions to read only. - ssh "${HPCUSER}@${HPCHOST}" chmod 440 "${COMMON_DATE_FOLDER}/${AN_FILE}/*" + ssh "${HPCUSER}@${HPCHOST}" chmod 440 "${COMMON_DATE_FOLDER}/*" else # Create member folder and go there mkdir -p ${COMMON_DATE_FOLDER} diff --git a/templates/real-from-dwd-ana/prepare_date_remote.sh b/templates/real-from-dwd-ana/prepare_date_remote.sh index a503ae8..8fec0ce 100644 --- a/templates/real-from-dwd-ana/prepare_date_remote.sh +++ b/templates/real-from-dwd-ana/prepare_date_remote.sh @@ -44,13 +44,16 @@ if [ "${IS_LOCAL}" == "0" ]; then rsync -v an_file.txt "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/an_file.txt" rsync -v fg_file.txt "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/fg_file.txt" + # Remove temporary files. + rm an_file.txt + rm fg_file.txt # Copy the first-guess and analysis files. rsync -v "${FG_SOURCE}" "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/${FG_FILE}" rsync -v "${AN_SOURCE}" "${HPCUSER}@${HPCHOST}":"${COMMON_DATE_FOLDER}/${AN_FILE}" # Change permissions to read only. - ssh "${HPCUSER}@${HPCHOST}" chmod 440 "${COMMON_DATE_FOLDER}/${AN_FILE}/*" + ssh "${HPCUSER}@${HPCHOST}" chmod 440 "${COMMON_DATE_FOLDER}/*" else # Create member folder and go there mkdir -p ${COMMON_DATE_FOLDER} -- GitLab