Skip to content
Snippets Groups Projects
Commit a55f8e2a authored by Oriol Tintó Prims's avatar Oriol Tintó Prims
Browse files

Fix command in prepare_date_remote.sh

parent 2e3ae4a2
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
......@@ -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}
......
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment