E3SM-Project / e3sm-unified

A metapackage for a unified anaconda environment for analyzing results from the Energy Exascale Earth System Model (E3SM).
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

Fix permissions masking in deployment scripts #81

Closed xylar closed 3 years ago

xylar commented 3 years ago

This merge updates how ownership and permissions are changed in the deployment scripts. #80 didn't quite get things right because there are other parts to the st_mode flag besides owner, group and user permissions, so that flag needs to be masked only to the parts relevant to file permissions to see if the permissions are already correct.

By checking if permissions are already correct, hours of time needlessly updating permissions should be saved in the future. Compy is the machine where this is the biggest problem. With these changes, modifying permissions should happen in 2 hours instead of 16 or more.