Skip to content

Commit 81ce038

Browse files
committed
fix: read/write permissions to project folder for users not root again
1 parent d5a6480 commit 81ce038

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ services:
121121
ports:
122122
- "10000:10000"
123123
volumes:
124-
- ./satosa-project:/satosa_proxy:rw
124+
- ./satosa-project:/satosa_proxy:rwx
125125
# - satosadata:/satosa_proxy # to be used for external volumes
126126
working_dir: /satosa_proxy
127127
entrypoint: "sh entrypoint.sh"

Docker-compose/run-docker-compose.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ function clean_data {
1212
function initialize_satosa {
1313
cp env.example .env
1414

15-
echo "WARNING: creating directories with read/write permissions to anybody"
15+
echo "WARNING: creating directories with read/write/execute permissions to anybody"
1616

17-
mkdir -p -m 766 ./satosa-project
18-
mkdir -p -m 766 ./djangosaml2_sp
19-
mkdir -p -m 766 ./mongo/db
20-
mkdir -p -m 766 ./nginx/html/static
17+
mkdir -p -m 777 ./satosa-project
18+
mkdir -p -m 777 ./djangosaml2_sp
19+
mkdir -p -m 777 ./mongo/db
20+
mkdir -p -m 777 ./nginx/html/static
2121

2222
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
2323
if [ ! -f ./djangosaml2_sp/run.sh ]; then cp -R ../example_sp/djangosaml2_sp/* ./djangosaml2_sp ; else echo 'djangosaml2_sp directory is already initialided' ; fi

0 commit comments

Comments
 (0)