Skip to content

Commit

Permalink
Allow submission as a job
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Mar 6, 2024
1 parent 07f6f19 commit 979c86e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fix_permissions.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#!/bin/bash

#SBATCH -p shared
#SBATCH -c 1
#SBATCH --mem=2G
#SBATCH --job-name=fix_permissions
#SBATCH -o fix_permissions.log
#SBATCH -e fix_permissions.log

# Ensure permissions are correct on all source and lua files:
# 'ordinary_permissions' controls permissions on all lua files and non-conda-
# environment source files. 'conda_permissions' controls permissions on conda
Expand All @@ -18,7 +27,7 @@ for env_dir in $(ls -1d ${src_dir}/*/*/*_env); do
done

echo "Setting open permissions on 'r_nac'..."
chmod 777 -R ${src_dir}/r_nac/1.0/nac_env
chmod -R 777 ${src_dir}/r_nac/1.0/nac_env

echo "Setting default permisions on all lua files..."
chmod -R $ordinary_permissions $lua_dir
Expand Down

0 comments on commit 979c86e

Please sign in to comment.