Skip to content
Snippets Groups Projects
Commit 2fedd315 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

change ownership to ${USER}:atlab and set permissions to 550 for both directory and log file

parent c426077a
No related branches found
No related tags found
5 merge requests!24Release v0.2.0,!22Update main to rel_v0.1.1-1,!21Fix some merge errors,!20Refactoring run-mmpol scripts,!19BUGFIX: Change ownership to executing USER and group to atlab. Also automatically gzip the log output
......@@ -127,12 +127,17 @@ if [[ ! ${dry_run} ]]; then
log_dir="${outdir}/${log_name}.d"
mkdir ${log_dir}
chmod 1770 ${log_dir}
# tag output file with run metadata
raw_log_file=$(find ${outdir} -maxdepth 1 -name "list-${SLURM_JOBID}*" -type f | head -1)
if [[ "$raw_log_file" != "" ]]; then
mv -n ${raw_log_file} ${log_dir}/${log_name}
chmod 550 ${log_dir}/${log_name}
gzip ${log_dir}/${log_name}
fi
chown -R ${USER}:atlab ${log_dir}
rmdir ${tmpglobal}
fi
......
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