Skip to content

Commit

Permalink
fix: read/write permissions to project folder for users not root again
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Nov 14, 2024
1 parent d5a6480 commit 81ce038
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ services:
ports:
- "10000:10000"
volumes:
- ./satosa-project:/satosa_proxy:rw
- ./satosa-project:/satosa_proxy:rwx
# - satosadata:/satosa_proxy # to be used for external volumes
working_dir: /satosa_proxy
entrypoint: "sh entrypoint.sh"
Expand Down
10 changes: 5 additions & 5 deletions Docker-compose/run-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ function clean_data {
function initialize_satosa {
cp env.example .env

echo "WARNING: creating directories with read/write permissions to anybody"
echo "WARNING: creating directories with read/write/execute 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
mkdir -p -m 777 ./satosa-project
mkdir -p -m 777 ./djangosaml2_sp
mkdir -p -m 777 ./mongo/db
mkdir -p -m 777 ./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 81ce038

Please sign in to comment.