Skip to content

Commit

Permalink
fix: read/write permissions to project folder for users not root
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Nov 14, 2024
1 parent 34be821 commit d5a6480
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Docker-compose/run-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ function clean_data {
function initialize_satosa {
cp env.example .env

mkdir -p ./satosa-project
mkdir -p ./djangosaml2_sp
mkdir -p ./mongo/db
mkdir -p ./nginx/html/static
echo "WARNING: creating directories with read/write permissions to anybody"

mkdir -p -m 766 ./satosa-project
mkdir -p -m 766 ./djangosaml2_sp
mkdir -p -m 766 ./mongo/db
mkdir -p -m 766 ./nginx/html/static

if [ ! -f ./satosa-project/proxy_conf.yaml ]; then cp -R ../example/* ./satosa-project/ ; rm -R ./satosa/static/ ; else echo 'satosa-project directory is already initialized' ; fi
if [ ! -f ./djangosaml2_sp/run.sh ]; then cp -R ../example_sp/djangosaml2_sp/* ./djangosaml2_sp ; else echo 'djangosaml2_sp directory is already initialided' ; fi
Expand Down

0 comments on commit d5a6480

Please sign in to comment.